I am trying to develop a script which runs (and, ideally, does the same :-) ) in zsh and Bash. Problem is, that at a point, the zsh-specific part contains a pattern ending with
this_pattern*(N). In zsh, that makes the pattern expand to nothing if it has no match.
Bash says for that, "syntax error by unexpected symbol". Note, execution on Bash never happens on this zsh-specific part, and this error message is caused by the parsing code!
Could I somehow help Bash to eat it, for example to not parse it?