bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unavoidable wildcard expansion on Windows 7


From: Bruno Haible
Subject: Re: unavoidable wildcard expansion on Windows 7
Date: Sun, 13 May 2012 22:38:58 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

Eli Zaretskii wrote:
> > Since '^' is a quoting character in cmd.exe, maybe you can try whether
> > it helps to protect "*" inside double-quotes on Windows 7? That is,
> > try to pass arguments such as
> >   ^*
> >   ^^*
> >   "*"
> >   "^*"
> >   "^^*"
> >   \"*\"
> >   \"^*\"
> >   \"^^*\"
> >   ^"*^"
> >   ^^"*^^"
> 
> I've now tested these, and as expected, they don't help on Windows 7.
> 
> My conclusion is that ^ is processed entirely by cmd.exe in its
> application code, whereas globbing code in MSVCRT does not assign any
> special meaning to that character.

Thanks for testing.

There are many programs that except to get a wildcard expression or
regular expression on the command line, such as
  csplit expr find grep nl ptx sed tac tr

What's the recommendation for using these as mingw binaries?

Or shall we claim they're unsupported on mingw, and only supported as
Cygwin binaries (where Cygwin handles the wildcard expansion according
to the old rules)?

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]