News for hackers. Stuff that matters.
Re:Do not use redirection characters in your shell prompt by jeffbee on Wednesday March 17, 2021 @11:44AM (#26492768)
Is there any locale in which » is a shell metacharacter? Or is the set of shell metas fixed regardless of locale?
Re:Do not use redirection characters in your shell prompt by stonesweep on Wednesday March 17, 2021 @12:26PM (#26493362)
It was defined by POSIX [1] - of course anyone can extend POSIX functionality (and does), however I'm personally unaware of a locale which would break this specific convention / definition as it would almost assuredly break a lot of scripts in the world.

[1] https://pubs.opengroup.org/onlinepubs/009604499/utilities/xc...

Re:Do not use redirection characters in your shell prompt by kaslai on Wednesday March 17, 2021 @01:26PM (#26494287)
It's a quoting character, so any environment that intends to use » semantically would probably not use it as a redirection character
Re:Do not use redirection characters in your shell prompt by jeffbee on Wednesday March 17, 2021 @01:29PM (#26494326)
Right, I was wondering if locales can influence the set of thing that behave as if they were ascii "