#!/bin/bash --norc


for arg; do
	case "$arg" in

	/*)
		echo "file://$arg"
		;;

	.)
		echo "file://$(pwd)"
		;;

	./*)
		echo "file://$(pwd)/${arg#./}"
		;;

	../*)
		echo "file://$(cd ..; pwd)/${arg#../}"
		;;

	..)
		echo "file://$(cd ..; pwd)"
		;;

	*)
		echo "file://$(pwd)/$arg"
		;;

	esac
done


exit


#!/bin/bash --norc


# Generate "file:" URL for each argument


for arg; do
	case "$arg" in
	/*)
		echo "file://$arg"
		;;

	*)
		echo "file://$PWD/$arg"
		;;

	esac
done
