bash errorif: Expression Syntax
J. Qiang Li
shijialee-/E1597aS9LQAvxtiuMwx3w at public.gmane.org
Sat Dec 10 15:05:50 UTC 2005
hello, all
i have a simple bash script that giving me problem under solaris.
run "source my_script", got error: "if: Expression Syntax"
then i chmod +x on my_script and invoke it with ./my_script , it worked. why? i am including this
script as postinstall in a solaris package, it failed to get invoked at the postinstall stage. how
do i fix that?
it's a simple script as
#!/bin/sh
if [ -e 'file' ]; then
echo "something"
fi
TIA
James.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
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