From: Prakash Babu <jprakashbabu31@gmail.com>
To: cygwin@cygwin.com
Subject: batch script execution failing with 255 exit code in cygwin 1.7.28
Date: Fri, 14 Feb 2014 07:05:00 -0000 [thread overview]
Message-ID: <CAHDNAGKo6SyTV_1sHsLoq6xR0p8BdT-TQ_9P=WCi+8j2dY7oEA@mail.gmail.com> (raw)
Hi ,
I use Cygwin to execute batch scripts on remote windows hosts using ssh.
The batch script execution started failing with the latest cygwin
version 1.7.28.
The exit code thrown is 255 and batch script is not able to process
the command line arguments.
When I try to print the command line argument(%1) its printing both
the argument name and value.
This was working fine with Cygwin 1.7.27 and looks to be regression in 1.7.28
eg. Batch script (test.bat)
@echo off
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
echo %1===
echo %2===
shift
shift
goto setArgs
:doneSetArgs
Cygwin.1.7.27 the output of the script would be
#./test.bat OS=Win
OS===
Win===
Cygwin.1.7.28 the output of the script is
#./test.bat OS=Win
"OS=Win"===
===
Is this a known issue ?
Where can I download Cygwin 1.7.27 until I find a workaround/fix to
this issue ?
thanks,
Prakash
--
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
next reply other threads:[~2014-02-14 6:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 7:05 Prakash Babu [this message]
2014-02-14 8:58 ` Andrey Repin
2014-02-14 15:28 ` Christopher Faylor
2014-02-17 3:35 ` Prakash Babu
2014-02-17 3:56 ` Christopher Faylor
2014-02-17 4:46 ` Christopher Faylor
2014-02-17 5:50 ` Prakash Babu
2014-02-17 13:14 ` Andrey Repin
2014-02-17 14:53 ` Chris J. Breisch
2014-03-21 0:37 Weber, Mark
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHDNAGKo6SyTV_1sHsLoq6xR0p8BdT-TQ_9P=WCi+8j2dY7oEA@mail.gmail.com' \
--to=jprakashbabu31@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).