Neil Bothwick wrote:
> On Tue, 25 Jul 2006 09:26:52 -0300, Mauro Faccenda wrote:
> 
>> > > You see? They cant be the same, because the closing "]" is needed
>> > > by /usr/bin[ and not by /usr/bin/test
>> >
>> > It's quite common for a program to change its behaviour according to
>> > the name used to run it. For example, zcat and gunzip are links to
>> > gzip, yet the three programs behave differently.
>> 
>> but this isn't the case:
> 
> I was disagreeing with the "cant be the same" comment. I know they are
> different files, but the slightly different behaviour is insufficient
> reason for that. Alexander asked why one was not a link to the other, I'd
> like to know too, but this isn't the reason.

Yes, you're right, [ and test *COULD* be the same command, just like
gzip and gunzip are the same command, but the coreutils makers seem
to have decided otherwise. It's not that important to me, if it were,
I'd ask the coreutils makers and not some 3rd party. :)

Anyway, on other systems (HP-UX, Solaris 8), there isn't even a
/usr/bin/[ - there's just /usr/bin/test.

Alexander Skwar
-- 
May those that love us love us; and those that don't love us, may
God turn their hearts; and if he doesn't turn their hearts, may
he turn their ankles so we'll know them by their limping.
-- 
gentoo-user@gentoo.org mailing list

Reply via email to