Closed ethanjli closed 14 years ago
Also, the command
echo "
Remember to use single quotes! You're not sending what you think you're sending.
Your second example is actually a non-problem,
[skr@lambda qdc]$ echo "
Remember to use single quotes! You're not sending what you think you're sending.
Okay. For future reference, what is the difference between single quotes and double quotes that causes this behavior?
furthermore, escq is supposed to do that.
Yeah, it was late at night
Single quotes dont interpolate variables, dont care about backslashes: '$blah \' => $blah \ "$blah \" => [value of blah] \ '$blah \' lol ' => incorrectly parsed string. To insert a single quote into a single quote expression, leave the single quotes and use a backslash. '$blah '\'' lol' => $blah ' lol
Issue fixed; the newline thing needed a tiny careful tuneup. Check this thing out to see if i'm sane or not.
Yeah, it all makes sense now.
They aren't reversible in certain cases: The command echo " foo\nbar" | ./escq
returns