Hello,
I'm looking for a way to disable most shell expansion for the arguments to a script or function and treat everything up to a newline char as verbatim text, i.e. as if quoted.
For example, given a function/script "todo", I'd like
todo Text inc. $var, *glob?, events!, <redirs, >(sub) & more
to behave more like it was quoted:
todo 'Text inc. $var, *glob?, events!, <redirs, >(sub) & more'
I know of noglob to disable glob chars, and can have a look at histchars to see if events can be disabled. But I'm not sure if any of the other expansion can possibly disabled.
Mostly I'm interested joting down some plain text which could include '?!&' and have "todo" receive it all without the shell having done some magic beforehand.
Any ideas?