Re: [PATCH] Fix problematic ']'
- From
- Timo Hirvonen <tihirvon@gmail.com>
- Date
- Jul 23, 2007, 20:58 UTC
- Message-ID
- <20070723235835.36b6d87a.tihirvon@gmail.com>
- In-Reply-To
- <200707232236.21389.johannes.sixt@telecom.at>
Johannes Sixt <johannes.sixt@telecom.at> wrote:
> Not all shells grok a closing ']' of the shell '[' command without > surrounding space.
That's one good reason to use test instead of /usr/bin/[ hack (yes it has been a shell built-in for a long time). [ is just like test but expects ] as last parameter and ignores it. Very ugly IMO.
-- http://onion.dynserv.net/~timo/