[Top][All Lists]

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

-name and metacharacters

From: Ronald Rechenmacher
Subject: -name and metacharacters
Date: Fri, 19 Jan 2001 23:14:42 +0000


How long has this been true (excerpt from man page under "-name pattern"
        The metacharacters  (`*', `?', and `[]') do not match a
         `.' at the start of the base  name.

Has it been years?  I use Linux, IRIX and SunOS so I get confused
sometimes, but
I could have sworn at one time all the systems find's would match `.' at
the start of a

Anyhow, it seems as if now only find on IRIX does.

What would it take to get an option added to gnu find to allow the
to match `.' at the start of the base name? Or possible change the
default behavior back
(if it was every changed)?

I've found that I have, over the years, wrote several shell scripts that
assume it does.
I thought "hiding" basenames that start with `.' was only a concept for
If the default behavior was to match, the user could always specify
I realize a work around is: find . | grep '<grep_re>'

Ronald D. Rechenmacher
Fermi National Accelerator Laboratory
Batavia, Illinois, USA

reply via email to

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