#!/usr/local/plan9/bin/rc rfork e usage='usage: me [fs]' if(~ $1 ?*) fs=$1 if(! ~ $fs ?*){ echo $usage echo ' set env fs' exit } path=($PLAN9/bin $path) mp=/n/$fs if(! test -e $mp/usr/none/tmp){ echo $mp is not mounted echo exec: 9 mount $fs /n/$fs exit } me=(me1 me2) rm $mp/usr/none/tmp/^$me >[2] /dev/null touch $mp/usr/none/tmp/$me(1) 9p -a $fs create /usr/none/tmp/$me(2) 9p -a $fs ls -l /usr/none/tmp/^$me echo 'if me1 is none, you are attached as none'