bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug with 'test' built-in.


From: Paul Jarc
Subject: Re: Bug with 'test' built-in.
Date: Thu, 10 Aug 2006 11:44:26 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

mwoehlke <mwoehlke@tibco.com> wrote:
> I *know* '! [ -a file ]' is not portable. I tried to use it in some 
> script, somewhere, at some time, and it was sometimes treated as history 
> expansion.

Quoting the "!" would take care of that particular problem, but there
are some older shells, like Solaris /bin/sh, where the "!" command
doesn't exist at all, so if this script will have to run in anything
but bash, it'd still be good to use one of the other methods.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]