Plan 9 from Bell Labs’s /usr/web/sources/nix/nix/rc/bin/mkss

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


#!/bin/rc

# TODO 
# take scripts from standard input
# make it possible to install scripts to rc bin instead.

if(! ~ $#* 1){
	echo usage: $0 scriptname >[1=2]
	exit usage	
}

echo '#!/bin/rc
' >$home/bin/rc/$1
plumb $home/bin/rc/$1

chmod 0755 $home/bin/rc/$1

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.