[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash -n doesn't seem to catch all syntax errors...
From: |
Chet Ramey |
Subject: |
Re: bash -n doesn't seem to catch all syntax errors... |
Date: |
Tue, 16 Oct 2007 22:51:24 -0400 |
User-agent: |
Thunderbird 2.0.0.6 (Macintosh/20070728) |
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/