16 lines
162 B
Plaintext
16 lines
162 B
Plaintext
|
if [ $# = 1 ]
|
||
|
then
|
||
|
NAM=`expr $1 : '^\(\/.*\)'`
|
||
|
if [ X$NAM != X ]
|
||
|
then
|
||
|
NAM=$1
|
||
|
else
|
||
|
NAM=../$1
|
||
|
fi
|
||
|
echo $NAM
|
||
|
exit 0
|
||
|
else
|
||
|
echo PATH_ERROR
|
||
|
exit 1
|
||
|
fi
|