code: regress

ref: 45b972bb1fc2c45267e5188498d493c800c7be83
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 -f'WW, DD MMM YYYY hh:mm:ss Z'}
		x=`{date -n}
		y=`{seconds $"tm}
		if(! ~ $x $y){
			echo $f $tm $x $y are not equal
			msg=($msg $f)
		}
	}
}

exit $"msg