1 #!/bin/sh 2 UP= 3 DN=${PWD:?} 4 TP=${TOPDIR:?} 5 6 while [ ! $TP/$UP/. -ef $DN ] ;do 7 UP=`basename $PWD`/$UP 8 cd .. 9 if [ "$PWD" = "/" ]; then echo "Lost"; exit 1; fi 10 done 11 12 echo $UP 13 exit 0
Cache object: d33ec2786782e71e4fe1f6d09d41b51b
[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]
This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.