ref: 8f27ffaf6569d4284b370a25377e6dd86edfa563 dir: /osdir/
#!/bin/rc rfork ne d=`{pwd} a='' while(! p=`{ns | grep ' /mnt/term/.* '^$"d^'[ ]*$' | sed 's,.*/mnt/term([^ ]*).*,\1,g'}) { a=`{basename $"d}^/^$"a d=`{basename -d $"d} } echo $p/$a