[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: bash -n doesn't seem to catch all syntax errors...
From: |
Ken Failbus |
Subject: |
RE: bash -n doesn't seem to catch all syntax errors... |
Date: |
Wed, 17 Oct 2007 09:57:28 -0400 |
Thanks for your reply. That would certainly help.
Regards,
Ken
-----Original Message-----
From: Chet Ramey [mailto:chet.ramey@case.edu]
Sent: Tuesday, October 16, 2007 9:51 PM
To: Ken Failbus
Cc: Andreas Schwab; bug-bash@gnu.org; chet@case.edu
Subject: Re: bash -n doesn't seem to catch all syntax errors...
Ken Failbus wrote:
> So how can bash script syntax be verified that includes shopt???
> Is there more option on bash syntax command-line check that would make
it identify this grammar???
One uses the `-O' invocation option to enable and disable shopt options
at
execution time. You would use `bash -O extglob -n scriptname'.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu
http://cnswww.cns.cwru.edu/~chet/