[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #20970] Trailing slash on directory arguments breaks -name
From: |
Eric Blake |
Subject: |
[bug #20970] Trailing slash on directory arguments breaks -name |
Date: |
Tue, 04 Sep 2007 19:30:08 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 |
Follow-up Comment #3, bug #20970 (project findutils):
More points of reference, seeing how coreutils handles extra trailing slashes
(and adding the coreutils list for comments):
$ mkdir -p dir/subdir
$ touch q r
$ mv -v q r dir////
`q' -> `dir/q'
`r' -> `dir/r'
$ # built names were compressed
$ ls -d dir////
dir/////
$ # command line args were listed as typed
$ ls -R dir////
dir////:
q r subdir/
dir/subdir:
$ # again, command line arg as is, built names compressed
Given that behavior, then perhaps this should happen:
$ find dir////
dir////
dir/q
dir/r
dir/subdir
And if that is the case, then "find foo// -wholename foo/" would not match,
but "find foo// -wholename foo/*" would match everything, and "find foo//
-wholename foo//*" would only match "foo//".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20970>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #20970] Trailing slash on directory arguments breaks -name,
Eric Blake <=