From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87537 invoked by alias); 5 Dec 2016 19:39:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 87528 invoked by uid 89); 5 Dec 2016 19:39:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:0500, H*M:corp X-HELO: esa4.dell-outbound.iphmx.com Received: from Unknown (HELO esa4.dell-outbound.iphmx.com) (68.232.149.214) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 05 Dec 2016 19:39:25 +0000 Received: from esa6.dell-outbound2.iphmx.com ([68.232.154.99]) by esa4.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Dec 2016 13:39:17 -0600 From: "Gluszczak, Glenn" Received: from mailuogwdur.emc.com ([128.221.224.79]) by esa6.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Dec 2016 01:39:17 +0600 Received: from maildlpprd52.lss.emc.com (maildlpprd52.lss.emc.com [10.106.48.156]) by mailuogwprd51.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id uB5JdGE9019145 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 5 Dec 2016 14:39:16 -0500 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd51.lss.emc.com uB5JdGE9019145 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd51.lss.emc.com uB5JdGE9019145 Received: from mailusrhubprd53.lss.emc.com (mailusrhubprd53.lss.emc.com [10.106.48.18]) by maildlpprd52.lss.emc.com (RSA Interceptor) for ; Mon, 5 Dec 2016 14:36:50 -0500 Received: from MXHUB209.corp.emc.com (MXHUB209.corp.emc.com [10.253.68.35]) by mailusrhubprd53.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id uB5Jd0eN020192 (version=TLSv1.2 cipher=AES128-SHA256 bits=128 verify=FAIL) for ; Mon, 5 Dec 2016 14:39:00 -0500 Received: from MX204CL04.corp.emc.com ([fe80::5c2f:a83c:a32d:4b29]) by MXHUB209.corp.emc.com ([10.253.68.35]) with mapi id 14.03.0266.001; Mon, 5 Dec 2016 14:39:00 -0500 To: "cygwin@cygwin.com" Subject: sh -c and newline Date: Mon, 05 Dec 2016 19:39:00 -0000 Message-ID: <91DCAC3CB99C724EB365BB64677FBE7B1007BC@MX204CL04.corp.emc.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd53.lss.emc.com X-RSA-Classifications: public X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00038.txt.bz2 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-docume= nt. %%%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