I create a directory called bob@example.com/
I wanted to use this email address as the directory name - I know - not a good idea for many reasons - but lets assume this is a very temporary directory that I delete seconds later :)
I give the command
mkdir bob@example.com
However when I check the directory I see it actually created it with quotes around it.
...
'bob@example.com`
...
I then found this is due to the @
What are the rules for special characters in directory names and how does the system decide to quote them
ls
into your question? Or does it really end with a backtick? – Stephen Kitt Nov 13 '19 at 15:31ls
aliased tols --quoting-style=locale
? That's the only way I can replicate it. (although I get surrounding unicode quotes, not single quotes or backticks) – Jeff Schaller Nov 13 '19 at 15:42/usr/bin/ls
doesn't have the issue. My ls is an alias toalias ls='ls -F --color=al'
– Michael Durrant Nov 13 '19 at 16:03-F
or--color=al(ways)
, so I posted my guess (the quoting-style) in an Answer. – Jeff Schaller Nov 13 '19 at 17:05ls
command. You can revert it withexport QUOTING_STYLE=literal
. – Chris Davies Nov 13 '19 at 17:12