Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/0922/9

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


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


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.