logoalt Hacker News

tomcamtoday at 11:28 AM2 repliesview on HN

    Every tool and shell that lay in arm's reach treated the comma as a perfectly normal and unobjectionable character in a filename.
WTF. After 40 years maybe I should have figured that one out.

Replies

pm215today at 11:39 AM

It's not a completely non special character: for instance in bash it's special inside braces in the syntax where "/{,usr/}bin" expands to "/bin /usr/bin". But the need to start that syntax with the open brace will remind you about the need to escape a literal comma there if you ever want one.

mike-the-mikadotoday at 12:27 PM

Until someone forces you to use a file system that cannot tolerate commas...

show 1 reply