sh -c and newline
Gluszczak, Glenn
Glenn.Gluszczak@dell.com
Mon Dec 5 19:39:00 GMT 2016
I can't seem to get sh -c to recognize newline. Tcsh -c works.
I'm using echo as an example but I'm actually trying to build a here-document.
%%%sh -c "echo \nhello"
nhello
%%%sh -c "echo \\nhello"
nhello
%%%sh -c "echo \\\nhello"
\nhello
%%%tcsh -c "echo \nhello"
nhello
%%%tcsh -c "echo \\nhello"
\nhello
%%%tcsh -c "echo \\\nhello"
hello
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list