Re: bash -n doesn't seem to catch all syntax errors...

2007-10-15 Thread Jan Schampera
Ken Failbus wrote: > When I specify on command-line "bash -n ". Bash doesn't > check for valid syntax errors. E.g. if variable is missing a "$" infront > of it while assigning a value. This is not catched by bash. > ### example code > p=hello > e=world > If [ p != $e ];then > echo "not equa

Re: bash -n doesn't seem to catch all syntax errors...

2007-10-15 Thread Andreas Schwab
"Ken Failbus" <[EMAIL PROTECTED]> writes: > Hi Guys, > > When I specify on command-line "bash -n ". Bash doesn't > check for valid syntax errors. E.g. if variable is missing a "$" infront > of it while assigning a value. Bash is not Perl. Your example code is perfectly valid. Andreas. -- Andr

Re: bash -n doesn't seem to catch all syntax errors...

2007-10-15 Thread Bob Proulx
Ken Failbus wrote: > When I specify on command-line "bash -n ". Bash doesn't > check for valid syntax errors. E.g. if variable is missing a "$" infront > of it while assigning a value. This is not catched by bash. Unfortunately what you are describing is not a syntax error. It is perfectly valid

bash -n doesn't seem to catch all syntax errors...

2007-10-15 Thread Ken Failbus
Hi Guys, When I specify on command-line "bash -n ". Bash doesn't check for valid syntax errors. E.g. if variable is missing a "$" infront of it while assigning a value. This is not catched by bash. Is there a more specific option that should be specified to bash to check for syntax errors. Regard

RE: bash script in background gets interrupted if carriage return is hit...

2007-10-15 Thread Ken Failbus
Hi Chet, I was able to solve the problem. By uncommenting a line in our script that was setting a "set -m" for Solaris platform I was able to resolve this issue. Thanks to everyone for looking into this one and advising. Regards, Ken -Original Message- From: Chet Ramey [mailto:[EMAIL PR