Re:Do not use redirection characters in your shell prompt
by stonesweep on Wednesday March 17, 2021 @12:09PM
(#26493124)
Subtle greybeard update: ` :>/some/file ` still evaluates in shell, it will zero out a file (truncate) quick and dirty - the emphasis in enriquto's comment is still very important, do not include redirection chars.
[ Parent
| on HN ]
Re:Do not use redirection characters in your shell prompt
by diffuse_l on Wednesday March 17, 2021 @12:22PM
(#26493310)
You don't even need the ':'.
'>/some/file' works as well.