From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104460 invoked by alias); 22 Sep 2016 18:56:23 -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 104432 invoked by uid 89); 22 Sep 2016 18:56:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=0.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=hasta, seguridad, est=c3=a1, estado?= X-HELO: mail-qk0-f174.google.com Received: from mail-qk0-f174.google.com (HELO mail-qk0-f174.google.com) (209.85.220.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Sep 2016 18:56:11 +0000 Received: by mail-qk0-f174.google.com with SMTP id g67so25415488qkd.0 for ; Thu, 22 Sep 2016 11:56:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=S6dZZAYFDr/uVXlb1mLFoY+CtxDL9zgINAhvr/kPJRs=; b=jWxSsknOt+jyoZ9QrN7jUX1KhIP+KprcY3X43GF3WC/l/QlYY2Veox9WDDOQeq3qbo YEMUEZh2D6GGbAdYfdhSGa1lqVoKyiqAQohHs9Yx40FCsJtR+CjvhIOtafpZhZpHgibu byOtx0kBDkPZlzf7qipcrFZPk5fky1IcmRseEwn3NYxBTbNbohLFyHPlQAcJM0q98CvY mzufW5BWXLuQeXmgra7UdLDEJe7TpS37dbUeRxPsRaR4SYYNk1Br367vLspkXhOCx0oB mupfe03mRZ0ABGF8tUi6GzJidcmmr17QOqgJgubcGKQRRFvmDyLWWOHWIAnant0dzfZD /lPQ== X-Gm-Message-State: AA6/9RmtmEGV3HX4/2+ImqyyeYM35NCPbxxJCt47Ybn28UquVQ57w14KhK49KLvr/uIzxO8jBBslBo1V9cRngA== X-Received: by 10.55.9.132 with SMTP id 126mr3834525qkj.234.1474570570043; Thu, 22 Sep 2016 11:56:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.40.228 with HTTP; Thu, 22 Sep 2016 11:55:49 -0700 (PDT) In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B0BF747@MX204CL04.corp.emc.com> References: <91DCAC3CB99C724EB365BB64677FBE7B0BF747@MX204CL04.corp.emc.com> From: SPC Date: Thu, 22 Sep 2016 19:13:00 -0000 Message-ID: Subject: Re: Errorlevel To: "cygwin@cygwin.com" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00282.txt.bz2 In appereance it happens with standard DOS commands too: C:\windows\system32>dir foo Directorio de C:\windows\system32 No se encuentra el archivo C:\windows\system32>echo %errorlevel% 1 C:\windows\system32>ls foo ls: cannot access 'foo': No such file or directory C:\windows\system32>echo %errorlevel% 2 C:\windows\system32>dir foo Directorio de C:\windows\system32 No se encuentra el archivo C:\windows\system32>echo %errorlevel% 1 Gracias | Regards - Saludos | Greetings | Freundliche Gr=C3=BC=C3=9Fe | Sal= utations --=20 Sergio Pedraja --=20 twitter: @sergio_pedraja | skype: Sergio Pedraja ----- No crea todo lo que ve, ni crea que est=C3=A1 vi=C3=A9ndolo todo ----- "El estado de una Copia de Seguridad es desconocido hasta que intentas restaurarla" (- nixCraft) 2016-09-22 20:47 GMT+02:00 Gluszczak, Glenn : > > Is this a known defect? The errorlevel of the ls command is passed to th= e 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 > -- 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