X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=wRSbhZpDeS3p4ZFQttMwj4dP679ms NNZ9kj0LxRD+XpqxEaMhSlhVSpEGRgq3jyWC67/E1g9ukYHyhERzj7+ys1bJzfOG RSQnk2h+e3LXnBdMDSbjT4nQGsgmk7y1MJw/754bkLBq4xppziJhdhYPVoJ+3K7M rhwSd9eC8uLWIk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=e9/7daAJKwg/eAHkFEiCm3+yCnE=; b=Gfx Y1R76dKjR81SVuaBPFhgmJ5LI34GMe1yWqiI+Yzx6ZCmicLTTtxfaB5j8/PLLkWX 4Q7AOPUW6UwOa3i+Cc8DMDaXi3a0zM1ewGhq6KZgPnPdkwsc5DYHxdWLM0nzRrcZ 6fNpvMf8GB/2niSMQ8mi3xgV7Up3E1OiKv7imtes= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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 From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "cygwin AT cygwin DOT com" CC: "'Gluszczak, Glenn'" Subject: RE: Command echo Date: Mon, 16 Nov 2015 16:40:46 +0000 Message-ID: <6CF2FC1279D0844C9357664DC5A08BA21BC24FE1@msgb09.nih.gov> References: <91DCAC3CB99C724EB365BB64677FBE7B01BE4B AT MX204CL04 DOT corp DOT emc DOT com> In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B01BE4B@MX204CL04.corp.emc.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tAGGf8na022686 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=nodosfilewarning > >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