[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #31943] Optional path component violates POSIX

From: anonymous
Subject: [bug #31943] Optional path component violates POSIX
Date: Tue, 21 Dec 2010 16:18:37 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10


                 Summary: Optional path component violates POSIX
                 Project: findutils
            Submitted by: None
            Submitted on: Tue Dec 21 16:18:36 2010
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Chris Rees
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
           Fixed Release: None



Most operating systems (FreeBSD [1], Solaris [2]) implement the correct
behaviour when not give a path to search.


$ find -type d

should fail.

Find should _require_ the first non-option to be a path, whereas this variant
assumes '.' if not provided.

This means that people writing scripts often don't make them portable; for
example the busybox project had some in their Makefiles until recently [3]

Perhaps now the damage is done, a warning could be given if this incorrect
behaviour is relied upon?

I'll write a patch shortly if that sounds agreeable.

[1] http://nixdoc.net/man-pages/FreeBSD/find.1.html

[2] http://docs.sun.com/app/docs/doc/816-0210/6m6nb7m9j?l=en&a=view



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]