On Mon, Nov 18, 2024 at 11:45:53AM +0100, Yassine Chaouche wrote: > Dear debian and linux enthusiasts, > > Have you ever stopped and wondered: > Are `/usr/bin/[` and `/usr/bin/test` truly unique across all unices? > > # diff /usr/bin/\[ /usr/bin/test > Binary files /usr/bin/[ and /usr/bin/test differ > # ls /usr/bin/\[ > -rwxr-xr-x 1 root root 67K Sep 20 2022 '/usr/bin/[' > # ls /usr/bin/test > -rwxr-xr-x 1 root root 59K Sep 20 2022 /usr/bin/test > # sys.distro > Debian GNU/Linux 12 \n \l > > # > > I can think of one single reason to keep them separate: > /usr/bin/[ needs to ensure there’s a closing ]. > test doesn't. > > If that's the only reason, > then the two commands must be sharing a huge chunk of the same DNA! > So, why keep them separate? > Is this about some old Unix tradition? > an optimization somewhere somehow?
Help yourseof :) https://sources.debian.org/src/coreutils/ (Of course, apt-get source coreutils would do the same). Cheers -- t
signature.asc
Description: PGP signature