Package: coreutils Version: 8.30-1 Severity: normal Tags: upstream Forwarded: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33113
I get the following with ls (GNU coreutils) 8.30. zira% touch a=b a=b\&c zira% ls a=b* 'a=b' 'a=b&c' zira% ls -b a=b* a=b a=b&c zira% ls -F a=b* 'a=b' 'a=b&c' zira% ls -bF a=b* a\=b a\=b&c AFAIK, the = character is not a shell metacharacter (except with zsh but only in the first position), thus does not need to be quoted. Moreover, while & is not a metacharacter, it is a special character that should be quoted for practical reasons. In particular, this inconsistency with -bF makes a\=b&c unusable by copy-paste, as a\=b&c can't be used directly in a shell command, and 'a\=b&c' is not OK either. Note: Such filenames with = and & can be produced by "wget -r". -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.18.0-2-amd64 (SMP w/8 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages coreutils depends on: ii libacl1 2.2.52-3+b1 ii libattr1 1:2.4.47-2+b2 ii libc6 2.27-6 ii libselinux1 2.8-1+b1 coreutils recommends no packages. coreutils suggests no packages. -- no debconf information