Re: Errorlevel

2016-09-23 Thread Andrey Repin
Greetings, Gluszczak, Glenn! > Sorry it's a Windows defect. Builtin CMD echo does not set an errorlevel. Since it is a documented effect, it's a feature. Internal commands do not set %ERRORLEVEL%. > -Original Message- > From: Gluszczak, Glenn > Sent: Thursday, September 22, 2016 2:48 P

RE: Errorlevel

2016-09-22 Thread Gluszczak, Glenn
Sorry it's a Windows defect. Builtin CMD echo does not set an errorlevel. Glenn -Original Message- From: Gluszczak, Glenn 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 e

Re: Errorlevel

2016-09-22 Thread SPC
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 %e

Re: ERRORLEVEL not returning to Cygwin shell

2013-10-11 Thread Andrey Repin
Greetings, paul.hermeneu...@gmail.com! > I am using CYGWIN_NT-5.1 PAC047922 1.7.25(0.270/5/3) 2013-08-31 20:39 > i686 Cygwin > An exit code returned by a DOS batch file does not seem to be coming > back to the Cygwin shell. I am using bash. > $ cat myexit.bat > @echo off > set EXITCODE=%1 > echo

Re: ERRORLEVEL not returning to Cygwin shell

2013-10-11 Thread Larry Hall (Cygwin)
On 10/11/2013 11:53 AM, Christopher Faylor wrote: On Fri, Oct 11, 2013 at 10:42:47AM -0400, Earnie Boyd wrote: On Fri, Oct 11, 2013 at 10:35 AM, Nellis, Kenneth wrote: From: Larry Hall (Cygwin) On 10/11/2013 8:27 AM, paul hermeneutic wrote: I am using CYGWIN_NT-5.1 PAC047922 1.7.25(0.270/5/3)

Re: ERRORLEVEL not returning to Cygwin shell

2013-10-11 Thread Christopher Faylor
On Fri, Oct 11, 2013 at 10:42:47AM -0400, Earnie Boyd wrote: >On Fri, Oct 11, 2013 at 10:35 AM, Nellis, Kenneth wrote: >>> From: Larry Hall (Cygwin) >>> >>> On 10/11/2013 8:27 AM, paul hermeneutic wrote: >>> > I am using CYGWIN_NT-5.1 PAC047922 1.7.25(0.270/5/3) 2013-08-31 20:39 >>> > i686 Cygwin >

Re: ERRORLEVEL not returning to Cygwin shell

2013-10-11 Thread Earnie Boyd
On Fri, Oct 11, 2013 at 10:35 AM, Nellis, Kenneth wrote: >> From: Larry Hall (Cygwin) >> >> On 10/11/2013 8:27 AM, paul hermeneutic wrote: >> > I am using CYGWIN_NT-5.1 PAC047922 1.7.25(0.270/5/3) 2013-08-31 20:39 >> > i686 Cygwin >> > >> > An exit code returned by a DOS batch file does not seem to

RE: ERRORLEVEL not returning to Cygwin shell

2013-10-11 Thread Nellis, Kenneth
> From: Larry Hall (Cygwin) > > On 10/11/2013 8:27 AM, paul hermeneutic wrote: > > I am using CYGWIN_NT-5.1 PAC047922 1.7.25(0.270/5/3) 2013-08-31 20:39 > > i686 Cygwin > > > > An exit code returned by a DOS batch file does not seem to be coming > > back to the Cygwin shell. I am using bash. > >

Re: ERRORLEVEL not returning to Cygwin shell

2013-10-11 Thread Larry Hall (Cygwin)
On 10/11/2013 8:27 AM, paul.hermeneu...@gmail.com wrote: I am using CYGWIN_NT-5.1 PAC047922 1.7.25(0.270/5/3) 2013-08-31 20:39 i686 Cygwin An exit code returned by a DOS batch file does not seem to be coming back to the Cygwin shell. I am using bash. $ cat myexit.bat @echo off set EXITCODE=%1 e