It can if you are executing programs that then try to execute those commands and get your commands instead.
env > "$(date +s).env-snapshot"
(And use it again slightly more awkwardly as <$file | xargs -I@ echo '"@"' | tr '\n' ' ' | xargs -I@ env @ cmd
or something more convenient to `cmd`.) <$file xargs ...If it is any consolation, I can't make any sense of this.
$ <xyz.txt wc -l
8
$ <xyz.txt | wc -l
0docker gives you this (but only as part of a whole ecosystem, which for various reasons you might not want to hitch your horse to).