[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Findutils-patches] [PATCH] Fix bug #20873 by documenting that * matches
From: |
James Youngman |
Subject: |
[Findutils-patches] [PATCH] Fix bug #20873 by documenting that * matches slashes and leading dots. |
Date: |
Sat, 8 Mar 2008 10:54:30 +0000 |
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:
+
address@hidden
+$ find . -path '*f'
+./quux/bar/baz/f
+$ find . -path '*/*config'
+./quux/bar/baz/.config
address@hidden example
@deffn Test -regex expr
--
1.5.3.8
- [Findutils-patches] [PATCH] Fix bug #20873 by documenting that * matches slashes and leading dots.,
James Youngman <=