1. npe
  2. plan9port

Source

plan9port / bin / 9fs

#!/Users/npe/src/plan9port/bin/rc

if(! ~ $#* 1){
	echo 'usage: 9fs sysname'
	exit usage
}

fn srv1 {
	flag=()
	if(~ $1 -*){
		flag=$1
		shift
	}
	if(! 9p stat $1 >/dev/null >[2=1]){
		rm -f $ns/$1
		srv $flag $2 $1
	}
}

ns=`{namespace}
switch($1){
case tip
	srv1 -a tip utumno.tip9ug.jp
case sources
	srv1 -n sources sources.cs.bell-labs.com
case *
	srv1 $1 $1
}