Subject: bin/31869: find and trailing slash
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <zafer@gmx.org>
List: netbsd-bugs
Date: 10/19/2005 11:46:00
>Number: 31869
>Category: bin
>Synopsis: find and trailing slash
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 19 11:46:00 +0000 2005
>Originator: Zafer Aydogan
>Release: 3.99.10
>Organization:
>Environment:
>Description:
when I run
$ find /usr/pkgsrc/ -name Makefile -mindepth 3 -maxdepth 3
the output is:
/usr/pkgsrc//archivers/9e/Makefile
/usr/pkgsrc//archivers/arc/Makefile
/usr/pkgsrc//archivers/advancecomp/Makefile
/usr/pkgsrc//archivers/afio/Makefile
...
There is one slash too much after "/usr/pkgsrc/"
The Output should be only with one slash, like this:
/usr/pkgsrc/archivers/9e/Makefile
/usr/pkgsrc/archivers/advancecomp/Makefile
/usr/pkgsrc/archivers/afio/Makefile
/usr/pkgsrc/archivers/arc/Makefile
/usr/pkgsrc/archivers/archangel/Makefile
...
The Problem is non-critical and appears also in 2.x
>How-To-Repeat:
$ find /usr/pkgsrc/ -name Makefile -mindepth 3 -maxdepth 3
>Fix: