[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #30772] Erroneous results while using printf on a name query
From: |
Bake Timmons |
Subject: |
[bug #30772] Erroneous results while using printf on a name query |
Date: |
Fri, 13 Aug 2010 22:25:54 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100731 IceCat/3.6.8 (like Firefox/3.6.8) |
URL:
<http://savannah.gnu.org/bugs/?30772>
Summary: Erroneous results while using printf on a name
query
Project: findutils
Submitted by: bt3
Submitted on: Fri 13 Aug 2010 10:25:54 PM GMT
Category: find
Severity: 3 - Normal
Item Group: Wrong result
Status: None
Privacy: Public
Assigned to: None
Originator Name: Bake Timmons
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.2
Fixed Release: None
_______________________________________________________
Details:
To reproduce, try
$ mkdir -p a/{b,.c,.de}
$ find -name '.[!.]*' -o -name '[!.]*' -printf '%f\n'
b
Yet, we have
$ find -name '.[!.]*' -o -name '[!.]*'
./b
./.c
./.de
Although I have since realized that '-not -name .' is the right way to solve
my original problem (instead of the options with the glob patterns), the first
find command above does indeed show a bug.
Thanks.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30772>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #30772] Erroneous results while using printf on a name query,
Bake Timmons <=