]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - warp/filexp
5 echo $1 | sed "s|~|${HOME-$LOGDIR}|"
8 if /bin
/test -f /bin
/csh
; then
9 /bin
/csh
-f -c "glob $1"
12 name
=`expr x$1 : '..\([^/]*\)'`
13 dir
=`sed -n -e "/^${name}:/{s/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\).*"'$'"/\1/" -e p -e q -e '}' </etc/passwd`
14 if /bin
/test ! -d "$dir"; then
16 echo "$me: can't locate home directory for: $name" >&2
21 echo $dir/`expr x$1 : '..[^/]*/\(.*\)'`