Date: Thu, 06 Sep 2018 20:36:55 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 228448] [PATCH] `unlink -foo` , the original use of `unlink`, no longer works. Message-ID: <bug-228448-227-qVMtEDxxKV@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-228448-227@https.bugs.freebsd.org/bugzilla/> References: <bug-228448-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=3D228448 Ed Maste <emaste@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emaste@freebsd.org --- Comment #1 from Ed Maste <emaste@freebsd.org> --- Thanks for the submission and I'd like to see this get fixed for 12.0. It appears this was broken by r97533, but I don't really understand why that change was made. I guess I can see value in supporting "unlink -- file" but don't see a reason to call getopt. Perhaps we ought to just if (argv =3D=3D 2) unlink(argv[1]) else if (argv =3D=3D 3 && argv[1] =3D=3D "--") unlink(argv[2]) The man page in your patch needs one more minor update: s/Either of these/A= ny of these/. --=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-228448-227-qVMtEDxxKV>