www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/22/14:48:22

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:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=V5u
4WiEhTVZVXc9Qk/65zB1iFPhVZ1hmoV4g5f7xUQFM/qvSm7VW+0n0qHb8D01h8H7
Ksz9AnqmZb4m7K6oOL1WStkVK8VXpxYRa75IrHN441dd7zsuN+wbqfm5/EmG2bz4
IuAnzfMruSkMGVPfDwodHomJQSBN7RvdK9lpZ508=
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:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=0SEe2q5iY
wHuVrXQV77OlUJg6Bw=; b=khE7G30v21sopCkHvkoajuB+8Ut4RoTK8+f9ByItU
n6lXcUIcEmwT6LB8dru8MEmvFoeNxoyOyu5TpmI+Jfq25WpUmdhSqH4kGPX8vU0W
JK3Pft8pPCxH7LMkfVvzkQqLEBIr1sZLsrv8y9rQn9MGbE4R4XqeIn8SM3n2nIDc
Qk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-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
From: "Gluszczak, Glenn" <Glenn DOT Gluszczak AT dell DOT com>
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd52.lss.emc.com u8MIlg4a021743
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd52.lss.emc.com u8MIlg4a021743
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Errorlevel
Date: Thu, 22 Sep 2016 18:47:37 +0000
Message-ID: <91DCAC3CB99C724EB365BB64677FBE7B0BF747@MX204CL04.corp.emc.com>
MIME-Version: 1.0
X-Sentrion-Hostname: mailusrhubprd02.lss.emc.com
X-RSA-Classifications: public
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u8MImD3l007192

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019