
Craig Sanders wrote:
OTOH, it's pretty easy to read the wrong line in the ouput and read the echo output instead of the '+' trace output....i've done that twice so far this morning (perhaps due to ENOCOFFEE), and initially thought that the bash versions on sid and precise were working as expected, until i looked again and realised they weren't. [...]
* 'echo' will theoretically expand the quotes, and therefore you won't see how the arguments actually get passed to cpan2rpm.
i've also tried it with /bin/echo rather than the builtin echo - same result, so it's not echo expanding the quotes, it's bash itself.
Use printf for this, not echo. bash4$ printf '==%s==\n' foo 'bar baz' "quux 'quuux quuuux'" ==foo== ==bar baz== ==quux 'quuux quuuux'==