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

2010-01-25 Thread Andreas Schwab
"Bryn M. Reeves" writes: > On Mon, 2010-01-25 at 17:44 +0100, Andreas Schwab wrote: >> "Bryn M. Reeves" writes: >> >> > [ 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 re

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

2010-01-25 Thread Bryn M. Reeves
On Mon, 2010-01-25 at 17:44 +0100, Andreas Schwab wrote: > "Bryn M. Reeves" writes: > > > [ 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 '

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

2010-01-25 Thread Andreas Schwab
"Bryn M. Reeves" writes: > [ may be a built in but then again (as its presence > in /usr/bin implies) it may not be :). Like any other command. Andreas. -- Andreas Schwab, sch...@redhat.com GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E "And now for something comple

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

2010-01-25 Thread Bryn M. Reeves
On Mon, 2010-01-25 at 16:44 +0100, Andreas Schwab wrote: > Garrett Holmstrom writes: > > > On Mon, Jan 25, 2010 at 6:09 AM, Bryn M. Reeves wrote: > >> It's cute isn't it? I had the biggest grin the day I realised that '[' > >> was just another command.. > > > > That's the reason [[ can use speci

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

2010-01-25 Thread Andreas Schwab
Garrett Holmstrom writes: > On Mon, Jan 25, 2010 at 6:09 AM, Bryn M. Reeves wrote: >> It's cute isn't it? I had the biggest grin the day I realised that '[' >> was just another command.. > > That's the reason [[ can use special characters like < and > without > escaping, while [ can't: [[ is a

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

2010-01-25 Thread Garrett Holmstrom
On Mon, Jan 25, 2010 at 6:09 AM, Bryn M. Reeves wrote: > It's cute isn't it? I had the biggest grin the day I realised that '[' > was just another command.. That's the reason [[ can use special characters like < and > without escaping, while [ can't: [[ is a builtin, but [ isn't. -- Garrett Hol

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

2010-01-25 Thread Bryn M. Reeves
On Fri, 2010-01-22 at 08:41 -0800, Cleaver, Japheth wrote: > > Denis Leroy > > what about '/usr/bin/[', part of cureutils... had never > > noticed this one before. > > > > -denis > > > Isn't that simply what makes "if [ (blah) ]" work? It's cute isn't it? I had the biggest grin the day I reali

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

2010-01-22 Thread Fulko Hew
On Fri, Jan 22, 2010 at 11:41 AM, Cleaver, Japheth wrote: > > > -Original Message- > > From: devel-boun...@lists.fedoraproject.org > > [mailto:devel-boun...@lists.fedoraproject.org] On Behalf Of > > Denis Leroy > > Sent: Friday, January 22, 2010 8:34 AM > > To: Development discussions rela

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

2010-01-22 Thread Cleaver, Japheth
> -Original Message- > From: devel-boun...@lists.fedoraproject.org > [mailto:devel-boun...@lists.fedoraproject.org] On Behalf Of > Denis Leroy > Sent: Friday, January 22, 2010 8:34 AM > To: Development discussions related to Fedora > Subject: Re: FC12: Hidden files in /usr/bin/* > *sni