Plan 9 from Bell Labs’s /usr/web/sources/patch/sorry/ape-rc-scripts-safe-path/ar89

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


#!/bin/rc
path=/bin

flagfmt='c,d,p,r,t,u,v,x'
args='archive [files ...]'

if(! ifs=() eval `{aux/getflags $*} || ~ $#* 0) {
	aux/usage
	exit usage
}

key=''
for(i in c d p r t x u v)
	if(f=flag$i ~ $#$f 1)
		key=$key$i
exec /$cputype/bin/ar $key $*

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.