What I\'d like to do is take, as an input to a function, a line that may include quotes (single or double) and echo that line exactly as it was provided to the function. For
doit echo "'single quote $VAR'" doit echo '"double quote $VAR"'
Both will work.
bash will only strip the outside set of quotes when entering the function.