Aug 30, 2025, 12:08 by g...@wooledge.org:All of these are compound commands, and must be parsed as a whole before executing any of the simple commands contained inside them.Sorry, Greg, but this is no "compound" command, these are separate commands: $ shopt -s extglob; echo !(this)
It's a list, described under `Lists' in the man page. Bash always reads at least one line of input, and parses all the commands on that line (and more if it's a compound command) before executing any of them.
Does a "syntax error" have to be so catastrophic as to abort the whole script?
Yes. This is how shells work, and what POSIX specifies. https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_08 -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature