From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72019 invoked by alias); 22 Sep 2016 18:48:04 -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 71972 invoked by uid 89); 22 Sep 2016 18:48:02 -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=Administrator, H*MI:corp, rights, corporation X-HELO: esa2.dell-outbound.iphmx.com Received: from Unknown (HELO esa2.dell-outbound.iphmx.com) (68.232.149.220) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Sep 2016 18:47:52 +0000 Received: from esa4.dell-outbound2.iphmx.com ([68.232.154.98]) by esa2.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2016 13:47:45 -0500 From: "Gluszczak, Glenn" Received: from mailuogwdur.emc.com ([128.221.224.79]) by esa4.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Sep 2016 00:47:43 +0600 Received: from maildlpprd54.lss.emc.com (maildlpprd54.lss.emc.com [10.106.48.158]) by mailuogwprd52.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id u8MIlg4a021743 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 22 Sep 2016 14:47:42 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd52.lss.emc.com u8MIlg4a021743 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd52.lss.emc.com u8MIlg4a021743 Received: from mailusrhubprd02.lss.emc.com (mailusrhubprd02.lss.emc.com [10.253.24.20]) by maildlpprd54.lss.emc.com (RSA Interceptor) for ; Thu, 22 Sep 2016 14:47:35 -0400 Received: from MXHUB224.corp.emc.com (MXHUB224.corp.emc.com [10.253.68.94]) by mailusrhubprd02.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id u8MIlbph008701 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=FAIL) for ; Thu, 22 Sep 2016 14:47:37 -0400 Received: from MX204CL04.corp.emc.com ([fe80::5c2f:a83c:a32d:4b29]) by MXHUB224.corp.emc.com ([10.253.68.94]) with mapi id 14.03.0266.001; Thu, 22 Sep 2016 14:47:37 -0400 To: "'cygwin@cygwin.com'" Subject: Errorlevel Date: Thu, 22 Sep 2016 18:56:00 -0000 Message-ID: <91DCAC3CB99C724EB365BB64677FBE7B0BF747@MX204CL04.corp.emc.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd02.lss.emc.com X-RSA-Classifications: public X-SW-Source: 2016-09/txt/msg00281.txt.bz2 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:\tmp\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:\tmp\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