URL:
  <http://savannah.gnu.org/bugs/?37106>

                 Summary: find: option -L only works when no search path is
given:
                 Project: findutils
            Submitted by: msteamix
            Submitted on: Mi 15 Aug 2012 12:34:50 GMT
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.2
           Fixed Release: None

    _______________________________________________________

Details:

Debian Wheezy with

ms@mango:/tmp/foo$ find --version | head -1
find (GNU findutils) 4.4.2

ms@mango:~> zsh --version
zsh 4.3.17 (x86_64-unknown-linux-gnu)

ms@mango:~#1> bash --version | head -1
GNU bash, Version 4.2.36(1)-release (x86_64-pc-linux-gnu)

ms@mango:~> apt-show-versions | egrep "(bash|zsh|findutils)"
bash/wheezy uptodate 4.2-4
bash-completion/wheezy uptodate 1:2.0-1
findutils/wheezy uptodate 4.4.2-4
zsh/wheezy uptodate 4.3.17-1


Happens in Debian Squeeze as well.


How to reproduce:

ms@mango:/tmp> mkdir foo
ms@mango:/tmp> cd foo
ms@mango:/tmp/foo> mkdir bar
ms@mango:/tmp/foo> mkdir baz
ms@mango:/tmp/foo> touch bar/foo
ms@mango:/tmp/foo> ln -s bar link
ms@mango:/tmp/foo> find -L
.
./bar
./bar/foo
./baz
./link
./link/foo
ms@mango:/tmp/foo> find   
.
./bar
./bar/foo
./baz
./link
ms@mango:/tmp/foo> LANG=C find . -L
find: unknown predicate `-L'
ms@mango:/tmp/foo> LANG=C find /tmp/foo -L
find: unknown predicate `-L'
ms@mango:/tmp/foo#1>

That was within Z-Shell, also in Bash:

ms@mango:/tmp/foo$ LANG=C find . -L
find: unknown predicate `-L'
ms@mango:/tmp/foo$ LANG=C find /tmp/foo -L
find: unknown predicate `-L'
ms@mango:/tmp/foo$


Expected result:

find accepts -L also when a search path is given.

Thanks,
Martin




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37106>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/


Reply via email to