From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94799 invoked by alias); 22 Sep 2016 19:47:18 -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 94781 invoked by uid 89); 22 Sep 2016 19:47:16 -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=rights, Administrator, corporation, reserved X-HELO: esa3.dell-outbound.iphmx.com Received: from Unknown (HELO esa3.dell-outbound.iphmx.com) (68.232.153.94) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Sep 2016 19:47:06 +0000 Received: from esa5.dell-outbound2.iphmx.com ([68.232.153.203]) by esa3.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2016 14:46:58 -0500 From: "Gluszczak, Glenn" Received: from mailuogwdur.emc.com ([128.221.224.79]) by esa5.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Sep 2016 01:46:58 +0600 Received: from maildlpprd53.lss.emc.com (maildlpprd53.lss.emc.com [10.106.48.157]) by mailuogwprd54.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id u8MJkvPb006224 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 22 Sep 2016 15:46:57 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd54.lss.emc.com u8MJkvPb006224 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd54.lss.emc.com u8MJkvPb006224 Received: from mailusrhubprd54.lss.emc.com (mailusrhubprd54.lss.emc.com [10.106.48.19]) by maildlpprd53.lss.emc.com (RSA Interceptor) for ; Thu, 22 Sep 2016 15:46:12 -0400 Received: from MXHUB204.corp.emc.com (MXHUB204.corp.emc.com [10.253.68.30]) by mailusrhubprd54.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id u8MJko0g016363 (version=TLSv1.2 cipher=AES128-SHA256 bits=128 verify=FAIL) for ; Thu, 22 Sep 2016 15:46:51 -0400 Received: from MX204CL04.corp.emc.com ([fe80::5c2f:a83c:a32d:4b29]) by MXHUB204.corp.emc.com ([10.253.68.30]) with mapi id 14.03.0266.001; Thu, 22 Sep 2016 15:46:50 -0400 To: "'cygwin@cygwin.com'" Subject: RE: Errorlevel Date: Thu, 22 Sep 2016 19:55:00 -0000 Message-ID: <91DCAC3CB99C724EB365BB64677FBE7B0BF7A0@MX204CL04.corp.emc.com> References: <91DCAC3CB99C724EB365BB64677FBE7B0BF747@MX204CL04.corp.emc.com> In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B0BF747@MX204CL04.corp.emc.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd54.lss.emc.com X-RSA-Classifications: public X-SW-Source: 2016-09/txt/msg00285.txt.bz2 Sorry it's a Windows defect. Builtin CMD echo does not set an errorlevel. Glenn -----Original Message----- From: Gluszczak, Glenn=20 Sent: Thursday, September 22, 2016 2:48 PM To: 'cygwin@cygwin.com' Subject: Errorlevel Is this a known defect? The errorlevel of the ls command is passed to the = echo. $ cmd Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved. C:\cygwin64\home\Administrator>del c:\tmp\hello del c:\tmp\hello Could Not = Find c:\tmp\hello C:\cygwin64\home\Administrator>ls foo ls foo ls: cannot access 'foo': No such file or directory C:\cygwin64\home\Administrator>echo hello > c:\tmp\hello echo hello > c:\tm= p\hello C:\cygwin64\home\Administrator>echo %errorlevel% echo %errorlevel% 2 C:\cygwin64\home\Administrator>del c:\tmp\hello del c:\tmp\hello C:\cygwin64\home\Administrator>echo hello > c:\tmp\hello echo hello > c:\tm= p\hello C:\cygwin64\home\Administrator>echo %errorlevel% echo %errorlevel% 0 -- 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