Email List: Xaustin-review-lX
[All Lists]

Defect in XCU find -prune

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XCU find -prune
From: yyyyy@xxxxxxxxxx
Date: Wed, 15 Jan 2003 17:29:41 GMT
        Defect report from : Mark Brown , IBM

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 450 line 17344 section find -prune objection {IBM-011501}

Problem:

Defect code :  3. Clarification required

When using -prune, is the special filename "." to be treated as a directory or 
as a 'special filename' as per XBD Sec 4.11? On all the UNIX implementations I 
have tried (and Linux as well), I get

$ find /tmp -name '*' -prune
/tmp

But, if you run this, you get the contents of /tmp:
$ cd /tmp
$ find . -name '*' -prune
./foo
./bar
./(and so on)

Where I would have expected:
$ find . -name '*' -prune
.

Which is the correct behavior?


Action:

Clarify the action of the . and .. filenames either in XBD 4.11 or in the 
-prune section of find.

<Prev in Thread] Current Thread [Next in Thread>