Hello Lawrence, hello *! > >> However, invalid parameter transformation operators are not considered > >> fatal errors, even in posix mode. Maybe they should be. > > > > Yes, please :-) > > > > Or no error at all. > > Why should invalid parameter transformation operators be treated > differently from other invalid parameter expansions?
For sure all syntactical errors on parameter expansions should be handled in the same way - I suggest they should be considered as fatal errors. Consider the following script: >>> #!/bin/bash echo "${x;:-}" ; echo "Not executed" echo "Executed" echo "${x:-}" ;; echo "Not executed" echo "Not executed" <<< It just a source of problems that the two syntactical errors (both caused by an extra semicolon) lead to different behaviour. Martin