#	.kshrc_bash_candidate - functions that I want to try before I buy


function ls () {
#	while test $# -gt 0
#	do
#		;	# case
#	done
# too complicated

	[ $# -eq 0 ] && command ls
	xxxherexxx=`pwd`
	for arg in "$@"
	do
		dir=`dirname $arg`
		[ $dir = '.' ] && command ls $arg
		cd $dir
		command ls `basename $arg`
		cd $xxxherexxx
	done
}


function ls () {
	opt=
	while test $# -gt 0
	do
		case "$1" in
			-*)	opt="$opt $1";;
			*)	break;;
		esac
		shift
	done
	[ $# -ne 1 ] && { command ls $opt "$@"; return; }
#	echo "$1" | fgrep '*' > /dev/null 2>&1 || { command ls "$1"; return; }
	dir=`dirname "$1"`
	[ $dir = '.' ] && { command ls $opt "$1"; return; }
	(
		cd $dir
		command ls $opt `basename "$1"`
	)
}
