logoalt Hacker News

tomcamyesterday at 11:28 AM5 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

pm215yesterday 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.

xyzzy_plughyesterday at 3:49 PM

You may enjoy learning about the [ binary.

layer8yesterday at 1:17 PM

You never used CVS/RCS with its “,v” files?

mike-the-mikadoyesterday at 12:27 PM

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

show 1 reply
XCSmeyesterday at 1:16 PM

What about using the filename in arrays in bash/sh?

show 1 reply