This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: `find' command broken.
- To: dbe at wgn dot net
- Subject: Re: `find' command broken.
- From: "John Cooper" <John dot Cooper at digitivity dot com>
- Date: Tue, 15 Jul 1997 10:14:32 +0100
- Cc: James Dumser <dumser at ti dot com>, GNU-Win32 at cygnus dot com
- References: <BMSMTP8688934660a0207776@dlemail.itg.ti.com><33CACE06.11AC@wgn.net>
- Reply-To: john dot cooper at digitivity dot com
$Bill Luebkert writes:
> James Dumser wrote:
> > For things to work
> > correctly with zsh, you'd have to start with
> > find . -name '\'*.c\'' -print
>
> Fails in tcsh:
> Unmatched '.
Ditto for zsh (nice problem summary though).
> > So what's the solution? I can think of several:
> > - don't use non-cygwin, globbing shells
> > - use non-cygwin utilities
> > - be very meticulous when you mix non-cygwin shells and cygwin programs
> > - port your non-cygwin, globbing shell to cygwin (which should be easier
> > now with Sergery's latest cygwin.dll)
>
> What's the matter with fix Cygwin32 to handle quoting
> properly for non-cygwin32 apps?
Or, alternatively, as a quick-hack fix:
How about introducing an environment variable that means "don't have cygwin
glob", and modify the above code as follows:
> >> /* Expand *.c, etc. */
> >> if (! u->self->cygwin_parent_p && !getenv("CYGWIN_DONT_GLOB"))
> >> globify (&argc, &argv);
Then I could just set CYGWIN_DONT_GLOB in my .zshrc and then `find', etc
would behave the same as under bash.
--- John
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".