Move server lookup into switch so can specify just server=
if desired.
[rsc] --rwxrwxr-x M 191333 glenda sys 855 Sep 22 09:17 rc/bin/C
/n/sourcesdump/2005/0922/plan9/rc/bin/C:16,32 -
/n/sourcesdump/2005/0923/plan9/rc/bin/C:16,37
}
switch($1){
+ case fs
+ server=edith
+ case ella
+ exec C office0
+ exit
case erika
exec C office1
exit
- }
-
- # look for server in /lib/ndb
- server=`{ndb/query sys $1 console}
- switch($server){
- case ''
- echo C: unknown console server for $1
- exit 1
+ case *
+ # look for server in /lib/ndb
+ server=`{ndb/query sys $1 console}
+ switch($server){
+ case ''
+ echo C: unknown console server for $1
+ exit 1
+ }
}
# can't cpu to old servers any more
|