ref: 231b9d446d132a28ef1b7f0f3dd9d2e7a9e53183 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