Re: binary files /usr/bin/[ and /usr/bin/test differ

2024-11-18 Thread Yassine Chaouche
Le 11/18/24 à 11:50, to...@tuxteam.de a écrit : Help yourseof :) https://sources.debian.org/src/coreutils/ (Of course, apt-get source coreutils would do the same). Cheers Thank you tomas, After a second reading of https://sources.debian.org/src/coreutils/9.5-1/src/test.c/, it seems tha

binary files /usr/bin/[ and /usr/bin/test differ

2024-11-18 Thread Yassine Chaouche
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 '/us

Re: binary files /usr/bin/[ and /usr/bin/test differ

2024-11-18 Thread Greg Wooledge
On Mon, Nov 18, 2024 at 11:57:05 +0100, Arno Lehmann wrote: > Am 18.11.2024 um 11:45 schrieb Yassine Chaouche: > > Dear debian and linux enthusiasts, > > > > Have you ever stopped and wondered: > > Are `/usr/bin/[` and `/usr/bin/test` truly unique across all unices? > > interesting question (and

Re: binary files /usr/bin/[ and /usr/bin/test differ

2024-11-18 Thread Arno Lehmann
Am 18.11.2024 um 11:45 schrieb Yassine Chaouche: Dear debian and linux enthusiasts, Have you ever stopped and wondered: Are `/usr/bin/[` and `/usr/bin/test` truly unique across all unices? interesting question (and observation below). I can't say I ever really cared, and I'm not even sure now

Re: binary files /usr/bin/[ and /usr/bin/test differ

2024-11-18 Thread tomas
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/bi

Re: binary files /usr/bin/[ and /usr/bin/test differ

2024-11-18 Thread Michael Stone
On Mon, Nov 18, 2024 at 11:45:53AM +0100, Yassine Chaouche wrote: So, why keep them separate? Is this about some old Unix tradition? an optimization somewhere somehow? Because gnu policy is command behavior to not be dependent on the name of the binary. Historically gnu utilities were often co

Re: binary files /usr/bin/[ and /usr/bin/test differ

2024-11-18 Thread Arno Lehmann
Thanks Greg! That was... well, as expected ;-) Am 18.11.2024 um 13:35 schrieb Greg Wooledge: On Mon, Nov 18, 2024 at 11:57:05 +0100, Arno Lehmann wrote: ... Unfortunately, I'm not brilliant at all. But I'm eager to see if Greg has something to educate us ;-) POSIX doesn't care whether you

Re: binary files /usr/bin/[ and /usr/bin/test differ

2024-11-18 Thread tomas
On Mon, Nov 18, 2024 at 12:30:03PM +0100, Yassine Chaouche wrote: > Le 11/18/24 à 11:50, to...@tuxteam.de a écrit : > > > > Help yourseof :) > > > > https://sources.debian.org/src/coreutils/ > > > > (Of course, apt-get source coreutils would do the same). > > > > Cheers > > > Thank you toma