ack/mach/sun3/libcc.ansi/homefromsubdir

16 lines
163 B
Plaintext
Raw Normal View History

1990-09-27 16:37:22 +00:00
if [ $# = 1 ]
then
NAM=`expr $1 : '^\(\..*\)'`
if [ X$NAM = X ]
then
NAM=$1
else
NAM=../$NAM
fi
echo $NAM
exit 0
else
echo PATH_ERROR
exit 1
fi