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. Read my post again. The command 'test' and the command '[' have
*different* syntax so cannot possible be links to each other and still
have it work. 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.

alan


-- 
gentoo-user@gentoo.org mailing list

Reply via email to