Plan 9 from Bell Labs’s /usr/web/sources/contrib/btdn/src/issue/remove

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


#!/bin/rc

rfork e
if(~ $#* 0){
	echo 'usage: issue/remove issue-name state' >[1=2]
	exit usage
}

# Doesn't (yet?) exist
#tracker=/n/sources/issue
tracker=./test

#if(~ $tracker /n/sources/issue){
#	if(! test -d /n/sources/issue){
#		rfork n
#		9fs sources
#	}
#}

if(! test -d $tracker/$2/$1)
	echo 'no such issue' $tracker/$2/$1 >[1=2]
if not
	rm -rf $tracker/$2/$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.