I normally have interactive_comments set, but while doing some testing it got unset.
So now comments within an anonymous functions typed in at the command line, or
called back from history, outputs different errors depending on what is commented.
function> #echo interactivecomments test
Outputs: (anon):2: bad pattern: #echo
Adding 'setopt interactive_comments' before the echo command within the anonymous
function has no effect.
Only setting interactive_comments external to the anonymous function stops an error
This seems to be different then what is expected in a non-anonymous function. May
have missed something, but do not see anything in the manual indicating this is the
case. If so sorry for the noise.
Is this normal for an anonymous function?
Why doesn't setting interactive_comments within an anonymous function work?
Thanks, and best regards,