System:
- Ubuntu 22.04.3 LTS
- GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
- ls (GNU coreutils) 8.32
Situation:
$ touch "N'*"
$ ls
'N'\''*'
"GNU Coreutils - Quoting File names" states:
“Files with single quotes are printed in a ridiculous way!” This issue was quickly fixed in version 8.26:
$ touch "Don't README.txt" $ ls-8.25 'Don'\''t README.txt' ## version 8.25 $ ls "Don't README.txt" ## version 8.26 and later
(bug22696#19)
Question: Is someone able to explain the difference in handling of the single quote between the above example and my file?
ls
is output to a terminal.ls | cat
shows the actual name (in a format that is unsuitable for re-entering into the command line).