https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=124084

Oleksandr Tymoshenko <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |Closed
                 CC|                            |[email protected]
         Resolution|---                         |Works As Intended

--- Comment #4 from Oleksandr Tymoshenko <[email protected]> ---
This is breaking behavior, I think a lot of existing scripts using find(1) rely
on filenames to be prefix-less. The easy way to work around this is to use '--'
marker to separate arguments from files:

% cat x.sh
mkdir -p /tmp/test
cd /tmp/test
>"-foo"
find . -type f -execdir ls -la -- {} \;
% sh x.sh
-rw-r--r--  1 gonzo  wheel  0 Jan 28 13:42 -foo

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to