On Tuesday 25 July 2006 09:20, Neil Bothwick wrote:
> 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.

but this isn't the case:

$ sha1sum /usr/bin/\[ /usr/bin/test
2d3a938b84db7107e323ac85a9bf4f351721da7b  /usr/bin/[
1b126dd3e41a2a9d4554879647f73fdf49d29479  /usr/bin/test

$ sha1sum /bin/zcat /bin/gzip /bin/gunzip
708011af43a41f6e3120e96eacb6ac4bba8717ee  /bin/zcat
708011af43a41f6e3120e96eacb6ac4bba8717ee  /bin/gzip
708011af43a41f6e3120e96eacb6ac4bba8717ee  /bin/gunzip

[]'s
        .m
-- 
[email protected] mailing list

Reply via email to