Thanks Thinker, I guess I didn't really ask the right question.
What I really want is to have the same nice quoting behaviors in my one liners that I am used to in perl. Dos is weird with quotes. I was wondering if there is some kind of workaround.
I would like to be able to do
perl -e "$helloWorld = '"hello world"'; print "$helloWorld"";
and have it "just work" (ie, print hello world with double quotes around it) without being in escape-with-backslash hell, ie,
perl -e "$helloWorld = '\"hello world\"'; print "$helloWorld"";
as, with gellyfish's help, I now know to do.
I guess maybe this really isn't *that* "hellish" but it isn't anywhere near as heavenly as perl outside of the dos shell. So, if there is some other trick... |