Re:'date -d' vs. 'date -s', and 'show foo' vs. 'clear foo'
by yjftsjthsd-h on Wednesday October 06, 2021 @01:49PM
(#28776027)
One could also read this as a cautionary tale in not running as root if you can help it: `date -s` will fail out with a nice error message if run as an unprivileged user. Of course, that won't save you if you were intentionally running as root (one could easily imagine a shell script running as root and needing to convert dates), but it makes it harder to unintentionally break things.
[ Parent
| on HN ]
There are no comments on this comment yet.