ref: 0f82143ee0b59de717f556ae7b873e2de9af2e79 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