On Tue, 25 Jul 2006 12:26:53 +0000, Hagen Soengen wrote:

> > I wonder where the differences are. I would've expected that test and
> > [ were hardlinks.
> 
> # /usr/bin/[
>       /usr/bin/[: missing ']'
> # /usr/bin/test
>       <no output>
> #
> 
> 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.


-- 
Neil Bothwick

Stupid user error. Terminate user (Y/n) ?

Attachment: signature.asc
Description: PGP signature

Reply via email to