Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/rc/date

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


#!/bin/rc

rfork en

opts=()
while(! ~ $#* 0 && ~ $1 -* && ! ~ $1 --){
	switch($1){
	case -t
		shift
		zone=/adm/timezone/$1
		if(! test -e $zone){
			echo $zone - file not found
			exit 'not found'
		}
		bind $zone /env/timezone
	case *
		opts=($opts $1)
	}
	shift
}

while(! ~ $#* 0){
	opts=($opts $1)
	shift
}

/$cputype/bin/date $opts

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].