This is the mail archive of the
mailing list for the Cygwin project.
Re: command line arg expansion
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 13 Jan 2007 02:12:43 -0500
- Subject: Re: command line arg expansion
- References: <firstname.lastname@example.org>
- Reply-to: cygwin at cygwin dot com
On Thu, Jan 11, 2007 at 11:38:18AM -0800, jim wrote:
>I have recently upgraded from 1.5.12 to 1.5.23 and noticed something that
>has me wondering. I compiled this on 1.5.23 and have run it under cmd.exe
>on on 1.5.12 and 1.5.23:
>int main(int argc, char *argv)
> int i, c;
> for (i = 0; i < argc; i++)
> printf("arg[%d]: '%s'\n", i, argv[i]);
>It appears that the runtime initialization on 1.5.23 is doing command line
>expansion - is this correct? If so, is this change documented somewhere so
>I get the full explanation?
>thanks for any insight,
This problem was introduced when we upgraded to a newer version of
glob(). We're using a fairly recent version of this routine from
FreeBSD bug, AFAICT, it has a bug which disallows quoting characters.
I've checked in a very simple fix for this and am generating a new
Thanks for the test case. You actually can see the failing behavior by
running cygwin's echo from a windows command line.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html