delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/15/02:56:12

From: John DOT Cooper AT digitivity DOT com ("John Cooper")
Subject: Re: `find' command broken.
15 Jul 1997 02:56:12 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <19970715091430890.AAA331.cygnus.gnu-win32@TENDLE>
References: <BMSMTP8688934660a0207776 AT dlemail DOT itg DOT ti DOT com>
<33CACE06 DOT 11AC AT wgn DOT net>
Reply-To: john DOT cooper AT digitivity DOT com
Mime-Version: 1.0
Original-To: dbe AT wgn DOT net
Original-Cc: James Dumser <dumser AT ti DOT com>, GNU-Win32 AT cygnus DOT com
In-Reply-To: <33CACE06.11AC@wgn.net>
X-Mailer: VM 6.32 under Emacs 19.34.1
X-Attribution: JSC
X-Face: -%]aecOJlhOSKn)}>~DbRQwM6G6gDkOD{2f!2Bt9|S-xC1~Gk^dCp_/HH#zo^u5z8iGty3N
L_1.GYkj0by`^VQK14EzbsY~BC%%O#x+[Giaf?X`hi9H)oEy]M>cx/Y4.I^5@^#kQrJk*!DwlpX: 1}
eZVU9: ~_QGIMF5[I
Original-Sender: owner-gnu-win32 AT cygnus 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019