bash errorif: Expression Syntax
Lennart Sorensen
lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Sat Dec 10 16:18:57 UTC 2005
On Sat, Dec 10, 2005 at 10:23:05AM -0500, Chris F.A. Johnson wrote:
> That is not a bash script. On Solaris, /bin/sh is not bash, it is a
> Bourne shell. Bourne shells do not have the -e operand.
>
> Either use [ -f 'file' ] or change the shebang to point to bash.
[ is not always a shell builtin. The question is what does /bin/[
support. And the error message says nothing about the test syntax, just
the if syntax.
Len Sorensen
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list