News for hackers. Stuff that matters.
Re:'date -d' vs. 'date -s', and 'show foo' vs. 'clear foo' by jcynix on Wednesday October 06, 2021 @04:24AM (#28770541)
My solution to such "risks" is to put things into aliases or shell functions. Or, as a more general advice: know your scripting language(s). For example:

perl -e 'print scalar localtime 1700000000' returns the readable date and could be the start of a script to do even more with such timestsamps, e.g. converting log files passed on stdin.

There are no comments on this comment yet.