-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
I was fixing TODOs in the testsuite to check TTY outputs.
And I realized that there is a seemingly unexpected character (presumably a space) that gets printed.
❯ /bin/ls "$(echo -e 'a\nb')" --hide-control-chars
'a'$'\n''b'
❯ target/debug/ls "$(echo -e 'a\nb')" --hide-control-chars
'a'$'\n''b'
^
Unexpected space
The default escaping strategy when outputing to a TTY is shell-escape. Strangely, the bug does not appear when output is not a TTY but with --quoting-style=shell-escape set, as already checked by the testsuite
BenWiederhake