Alan McKinnon schrieb:
On Tue, 2006-07-25 at 16:18 +0200, Etaoin Shrdlu wrote:
> test and [ are not links to each other as they have different syntax
> (the closing ]), so they cannot be the same command. If they were
> linked, one of them would fail on execution with invalid syntax
errors

This is not 100% true. As Neil Bothwick said, *the same program* can behave differently based on the name it was invoked with, so [ could very well have been implemented as a link to test (or viceversa), but this is not the case, as you can see with a ls -l /usr/bin/test /usr/bin/[

Um, no.

Uhm, *YES*.

Read my post again.

You better do so.

The command 'test' and the command '[' have
*different* syntax

Yes.

so cannot possible be links to each other

Why not?

The command does behave differently depending on the name
it is called with, but this does not change the syntax used on the
command line that invokes it.

What are you talking about?

Of course the program could have a different syntax.

For example, compare the syntax that zipinfo and unzip have.

Alexander Skwar
--
Delta: The kids will love our inflatable slides.    -- David Letterman
--
gentoo-user@gentoo.org mailing list

Reply via email to