syntax error in a script

M.W. Chang mwchang
Mon May 17 11:56:20 PDT 2004


what's wrong with the following line? when executed, it produced a 
syntax error:

## parse params
P=( "$@" ); n=0; DIROUT="."; FILEOUT=""

the error:

/usr/bin/hb-build: [: ==: binary operator expected
/usr/bin/hb-build: [: ==: binary operator expected
/usr/bin/hb-build: syntax error near unexpected token `P=('
/usr/bin/hb-build: /usr/bin/hb-build: line 47: `P=( "$@" ); n=0; 
DIROUT="."; FILEOUT=""'


-- 
   .~.    Might, Courage, Vision. In Linux We Trust.
  / v \   http://www.linux-sxs.org
/( _ )\  Linux 2.4.22-xfs
   ^ ^    7:14pm up 1 day, 21:39, 1 user, load average: 1.07, 1.03, 1.10


More information about the Linux-users mailing list