From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95890 invoked by alias); 16 Nov 2015 16:40:57 -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 95871 invoked by uid 89); 16 Nov 2015 16:40:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: nihxwayout.hub.nih.gov Received: from nihxwayout.hub.nih.gov (HELO nihxwayout.hub.nih.gov) (128.231.90.109) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 16 Nov 2015 16:40:54 +0000 X-SBRS-Extended: Low X-IronPortListener: Outbound_SMTP X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BtBQC/BUpW/4RHKJxegzuBSL5ogWSDPYJTAoFDORMBAQEBAQEBgQqENQEBBBIoPxACAQgNFRQQHxMlAgQODRqIDJ9+mkcBAQEBAQEBAQIBAQEBAQEBAQEahlaEfIRbg0mBFQWSZ4NhAQ6KYII4gXGHQ5MRIwI+hASFNgGBBgEBAQ X-IPAS-Result: A2BtBQC/BUpW/4RHKJxegzuBSL5ogWSDPYJTAoFDORMBAQEBAQEBgQqENQEBBBIoPxACAQgNFRQQHxMlAgQODRqIDJ9+mkcBAQEBAQEBAQIBAQEBAQEBAQEahlaEfIRbg0mBFQWSZ4NhAQ6KYII4gXGHQ5MRIwI+hASFNgGBBgEBAQ Received: from unknown (HELO msgb08.nih.gov) ([156.40.71.132]) by nihxwayout.hub.nih.gov with ESMTP/TLS/AES256-SHA; 16 Nov 2015 11:40:46 -0500 Received: from MSGB09.nih.gov ([169.254.9.96]) by msgb08.nih.gov ([169.254.8.72]) with mapi id 14.03.0235.001; Mon, 16 Nov 2015 11:40:46 -0500 From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "cygwin@cygwin.com" CC: "'Gluszczak, Glenn'" Subject: RE: Command echo Date: Mon, 16 Nov 2015 16:40:00 -0000 Message-ID: <6CF2FC1279D0844C9357664DC5A08BA21BC24FE1@msgb09.nih.gov> References: <91DCAC3CB99C724EB365BB64677FBE7B01BE4B@MX204CL04.corp.emc.com> In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B01BE4B@MX204CL04.corp.emc.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2015-11/txt/msg00223.txt.bz2 Gluszczak, Glenn sent the following at Monday, November 16, 2015 11:16 AM > >When I shell to cmd.exe, the commands I execute are echoed (not sure if >stdout or stderr). This doesn't happen under native cmd.exe. Is there a >variable that controls this? I only have CYGWIN=3Dnodosfilewarning > >Notice the commands "dir" and "whoami" are emitted to the output. cmd.exe is in control of its own echoing. Try starting as cmd /q cmd /? ... /Q Turns echo off ... As to why cmd behaves differently when started under bash (even in a non-mintty window) than when started directly or under cmd .... Hope that helps. - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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