'/usr/bin/[' (was RE: FC12: Hidden files in /usr/bin/*)

Andreas Schwab schwab at redhat.com
Mon Jan 25 18:00:21 UTC 2010


"Bryn M. Reeves" <bmr at redhat.com> writes:

> On Mon, 2010-01-25 at 17:44 +0100, Andreas Schwab wrote:
>> "Bryn M. Reeves" <bmr at redhat.com> writes:
>> 
>> > <nitpick> [ may be a built in but then again (as its presence
>> > in /usr/bin implies) it may not be :).
>> 
>> Like any other command.
>
> But unlike '[[' which is the point I was replying to. Afaik you can't
> provide a '[[' binary and have it mimic the builtin exactly.

Because [[ is not a command, it is a reserved word, part of the shell
grammar.  That is the key difference, not the built-in property.

Andreas.

-- 
Andreas Schwab, schwab at redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."


More information about the devel mailing list