summaryrefslogtreecommitdiff
path: root/sys/src/cmd/test.c
AgeCommit message (Collapse)Author
2021-02-06test: fix expression parserAlex Musolino
The old parser code was rubbish and only worked for trivial expressions. The new code properly handles complex expressions, including short circuit evaluation. As such, the BUGS section has been removed from the test(1) man page. The description of an unimplemented feature has also been removed.
2015-05-31test: use libc.h constants for access() mode (thanks qrstuv)cinap_lenrek
2013-06-03time: fix -older t for relative times to current time (thanks arisawa for ↵cinap_lenrek
pointing out) from test(1): f -older t True if file f is older than (modified before) time t. If t is a integer followed by the letters y(years), M(months), d(days), h(hours), m(minutes), or s(seconds), it represents current time minus the specified time. If there is no letter, it represents seconds since epoch. You can also concatenate mixed units. For example, 3d12h means three days and twelve hours ago. this means *without* [y M d h m s] unit, t is *absolute* time in seconds since epoch.
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen