On 20 May 2005, you wrote in lfs.dev:

> Robert Russell wrote:
>> On 5/19/05, Bryan Kadzban <[EMAIL PROTECTED]> wrote:
>> 
> However, we might be able to do something with exec in a subshell
> instead (since exec won't run a builtin or function, only an
> executable):
> 
> if ( exec [ -r file1 ] ) ; then do_whatever ; fi
> 
> I can't decide if that's more or less ugly than:
> 
> if /bin/[ -r file1 ] ; then do_whatever ; fi
> 
> though.  It is a few characters longer, for whatever that's worth.
> 

Just drop the "[" construct altogether and use /bin/test exclusively?

- --
Steve Crosby
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to