1 2 3 4 5 6 7 8 9 10
#!/bin/ksh function l. { if [[ -n "$1" ]]; then ( cd "$1" 2>/dev/null ||\ { echo "$0: $1 - No such directory" >&2 ; exit; } ls -d .* ) else ls -d .* fi }