Subject: Re: CVS commit: src/usr.bin/find
To: None <tech-userlevel@NetBSD.org>
From: Perry E. Metzger <perry@piermont.com>
List: tech-userlevel
Date: 02/08/2007 23:24:21
itohy@NetBSD.org (ITOH Yasufumi) writes:
> 	% ls -l
> 	drwxr-xr-x  2 itohy  users  512 Feb  9 12:28 #precious#
> 	-rw-r--r--  1 itohy  users    0 Feb  9 12:28 -delete
>
> in current directory, "find *" is expanded to
>
> 	find '#precious#' -delete
>
> and the user will have undesirable result.

Many of our commands will cause dangerous and unpredictable things to
happen if users use wildcards and there are files with names that are
identical to those of flags. This is hardly unique to find, and I
don't see why the situation is particularly different from that of
other commands.

Perry