3 ms·
You can always take advantage of what I believe is the portable property of consecutive strings (without space) being concatenated together. Then you never need
by bachmeier 6y ago
You can always take advantage of what I believe is the portable property of consecutive strings (without space) being concatenated together. Then you never need to escape anything in your scripts.
For instance, to produce a double quote inside single quotes, you can do this
echo "'"'"'"'"
That's three quoted strings next to each other that produce
'"'
- mkl 6y agoYou can get proper code formatting on HN by indenting two characters [1]: echo "'"'"'"'" '"' [1] https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc