News for hackers. Stuff that matters.
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.
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.

Re:Do not use redirection characters in your shell prompt by tremon on Wednesday March 17, 2021 @12:32PM (#26493457)
Parent's point was that starting your prompt with `:` isn't a guarantee that everything that follows is safe (to expand on the "without redirection characters" remark by the OP).
Re:Do not use redirection characters in your shell prompt by erlkonig on Wednesday March 17, 2021 @01:08PM (#26494009)
He did mention graybeards.