Fedora 31 and Debian 10 behaves different when I run the following command:
/bin/ls /bin/!(znew) | /bin/grep znew
Fedora it outputs nothing, but Debian it does:
znew exists on Fedora, if I run
/bin/ls /bin/znew | /bin/grep znew I get:
(On Debian it happens the same thing)
I've checked bash configuration on both distros, the only difference I've found is that on Fedora I have:
cdable_vars on cdspell on dirspell on login_shell on
On Debian those options are disabled, and
extglob is on on both distros
grep it's only used here to make the listing shorter
On Fedora: 5.0.11
On Debian: 5.0-4
Why does it exist such a difference?
/bin is a symlink to /usr/bin on both Debian and Fedora.
This is the output of searching for znew string in filenames:
updatedb && locate znew /usr/bin/znew /usr/share/man/man1/znew.1.gz /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/19.08/5a35247ad1c941455f2f9c4139d9136c6c0662e1b04e5b3c56121e7f67ba0100/files/bin/znew /var/lib/lxc/centos/rootfs/usr/bin/znew /var/lib/lxc/centos/rootfs/usr/share/man/man1/znew.1.gz /var/lib/lxc/opensuse/rootfs/usr/bin/xznew /var/lib/lxc/opensuse/rootfs/usr/bin/znew /var/lib/lxc/opensuse/rootfs/usr/share/man/man1/xznew.1.gz /var/lib/lxc/opensuse/rootfs/usr/share/man/man1/znew.1.gz
I've find something interesting, there was in Debian a symlink of /bin/X11 pointing to
. after removing it behaves as in Fedora.