delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/16/16:29:15

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <BF35D9C143BCCC4EB63181B67C9320C804DCDE@serv-075.icon-germany.local>
From: Heribert Dahms <heribert_dahms AT icon-gmbh DOT de>
To: "'gerrit DOT haase AT t-online DOT de'" <gerrit DOT haase AT t-online DOT de>
Cc: "'Timothee Besset'" <timo AT qeradiant DOT com>, cygwin AT cygwin DOT com
Subject: RE: possible bug with find
Date: Tue, 16 Jan 2001 22:18:30 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

WHAT?!: e.g. HP-UX 10.20 happens to have

$ ll /usr/*h
lr-xr-xr-t   1 root       sys             14 Jul 13  1998 /usr/keysh ->
/usr/lib
/keysh

thus

$ (cd /usr;find include -name *h)

finds nothing, since find is really invoked as

$ (cd /usr;find include -name keysh)

So unprotected * is passed only literally if the shell
FAILS to expand the wildcard in the current dir!

It needs to be quoted to work:

$ (cd /usr;find include -name '*h'|head -3)
include/sys/cmn_err.h
include/sys/sad.h
include/sys/stream.h


Bye, Heribert (heribert_dahms AT icon-gmbh DOT de)

> -----Original Message-----
> From:	Gerrit Peter Haase [SMTP:gerrit AT familiehaase DOT de]
> Sent:	Tuesday, January 16, 2001 22:56
> To:	Heribert Dahms
> Cc:	'Timothee Besset'; cygwin AT cygwin DOT com
> Subject:	Re: possible bug with find
> 
> Heribert Dahms schrieb:
> > 
> > Hi Timo,
> > 
> > no bug, user error: On every *ix you normally need quotation to prevent
> the
> > shell from file globbing (wildcard expansion) before involing programs,
> like
> > 
> > find GtkRadiant -iname '*.cpp' -print
> 
> WHAT???
> 
> $ find include -iname *.h -print
> 
> include/ansidecl.h
> include/bfd.h
	[Heribert]  [snip]


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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