X-Recipient: archive-cygwin@delorie.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:mime-version:date:message-id:subject:from:to
	:content-type; q=dns; s=default; b=sOS2xMSrWb0NKlYBsChc3xOKhrU7N
	3e8ajSrvO2LAFZ/58eGy+7XIUNvyGu/AFZHc/D5+yxICArYibtKzEajZhYLCLNKr
	rX9oMbFe9uy6l9nFOq7dkSKBG4kUyRUzyiJv1pfH2lkM4eldsYgFKi8LnUcPoN13
	SA7xpRuHCK7LfE=
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:mime-version:date:message-id:subject:from:to
	:content-type; s=default; bh=yNvNGwvN1HJNT0jxiTsYg2TwNgg=; b=yB5
	AF0PTe0UDF4ffzeEGnq27w5bbrWM6wTi6vm6L1IFElCWOK8Cg0j2yuJpMO9CXCd9
	CAN9934otUMgKA1Eg4W95W1FyCvWRiYEFGLkz6AO10eegTBScazN5RpXMsUSWxNA
	sanqPOdwT+v41QyXCj0qRh16Pizecgyph5ljZ0X8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_QUOTING autolearn=ham version=3.3.2
X-HELO: mail-qc0-f178.google.com
MIME-Version: 1.0
X-Received: by 10.224.34.71 with SMTP id k7mr9963234qad.15.1392360000472; Thu, 13 Feb 2014 22:40:00 -0800 (PST)
Date: Fri, 14 Feb 2014 12:10:00 +0530
Message-ID: <CAHDNAGKo6SyTV_1sHsLoq6xR0p8BdT-TQ_9P=WCi+8j2dY7oEA@mail.gmail.com>
Subject: batch script execution failing with 255 exit code in cygwin 1.7.28
From: Prakash Babu <jprakashbabu31@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
X-IsSubscribed: yes

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

