This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

sh -c and newline


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]