code: regress

ref: f76209e01bf9954bd50a84caa02c8883cab1e04a
dir: /libc/zones.rc/

View raw version
#!/bin/rc

rfork en

msg=()
for(f in /adm/timezone/*){
	if(! ~ $f /adm/timezone/README){
		cat $f >/env/timezone
		tm=`{date -m}
		x=`{date -n}
		y=`{seconds $"tm}
		if(! ~ $x $y){
			echo $f $tm $x $y are not equal
			msg=($msg $f)
		}
	}
}

exit $"msg