findutils-patches
[Top][All Lists]
Advanced

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

Re: [Findutils-patches] [PATCH] Fix bug #20873 by documenting that * mat


From: Eric Blake
Subject: Re: [Findutils-patches] [PATCH] Fix bug #20873 by documenting that * matches slashes and leading dots.
Date: Sat, 08 Mar 2008 17:35:20 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to James Youngman on 3/8/2008 3:54 AM:
| 2008-03-08  James Youngman  <address@hidden>
|
|       * doc/find.texi (Full Name Patterns): Point out that "*" matches /
|       and leading dots for -path.  This fixes bug #20873.
|
| Signed-off-by: James Youngman <address@hidden>
| ---
|  doc/find.texi |   11 ++++++++++-
|  1 files changed, 10 insertions(+), 1 deletions(-)
|
| diff --git a/doc/find.texi b/doc/find.texi
| index dd14f1e..3ca0cfb 100644
| --- a/doc/find.texi
| +++ b/doc/find.texi
| @@ -32,7 +32,7 @@ This file documents the GNU utilities for finding
files that match
|  certain criteria and performing various operations on them.
|
|  Copyright (C) 1994, 1996, 1998, 2000, 2001, 2003, 2004, 2005, 2006,
| -2007 Free Software Foundation, Inc.
| +2007, 2008 Free Software Foundation, Inc.
|
|  Permission is granted to copy, distribute and/or modify this document
|  under the terms of the GNU Free Documentation License, Version 1.2 or
| @@ -450,6 +450,15 @@ $ find /tmp/foo -path /tmp/foo/bar -print
|  Notice that the second @code{find} command prints nothing, even though
|  @file{/tmp/foo/bar} exists and was examined by @code{find}.
|
| +A @samp{*} in the pattern will even @samp{/} and even a leading dot in
| +a file name:

Missing word, plus it may be worth some context in comparison to normal
command line file expansion; how about:

Unlike file name expansion on the command line, a @samp{*} in the pattern
will match both @samp{/} and leading dots in file names:

| +
| address@hidden
| +$ find .  -path '*f'
| +./quux/bar/baz/f
| +$ find .  -path '*/*config'
| +./quux/bar/baz/.config
| address@hidden example
|
|
|  @deffn Test -regex expr

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH0zDI84KuGfSFAYARAnNqAKCPQUvFytRCunw5b0mLz7Au3x+2ogCgnpsa
VR+dyRN8eIobVCzAyCa5wTM=
=st2O
-----END PGP SIGNATURE-----




reply via email to

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