Date: Mon, 28 Jan 2019 21:42:38 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 124084] find(1): find -execdir does not prepend ./ to filenames, causing problems for certain files. Message-ID: <bug-124084-227-1LBqV7OcCk@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-124084-227@https.bugs.freebsd.org/bugzilla/> References: <bug-124084-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D124084 Oleksandr Tymoshenko <gonzo@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed CC| |gonzo@FreeBSD.org Resolution|--- |Works As Intended --- Comment #4 from Oleksandr Tymoshenko <gonzo@FreeBSD.org> --- 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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-124084-227-1LBqV7OcCk>