Bug 373 : processing shell script
Last modified: 2006-07-16 05:44




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
hungerburg
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2006-07-16 04:42
the shell script to start up the processing environment contains a C-ism,
that bash and ksh respect, still its not in POSIX requirements (dash fails,
eg.) please change line 28 in the script (from - to +):

- if [ $? == 0 ]
+ if [ $? = 0 ]

regards

peter

PS: test spex -
http://www.opengroup.org/onlinepubs/009695399/utilities/test.html
Additional Comment #1 From hungerburg 2006-07-16 04:46
perhaps it was even better to write the test expression like this:

if [ $? -eq 0 ]

peter
Additional Comment #2 From fry 2006-07-16 05:44
k, i've changed for the next release. thanks.