Date: Sun, 18 Oct 2015 19:25:38 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 203279] /bin/expr operator : fails when the string has a leading hyphen. Message-ID: <bug-203279-8-XeHusCaikx@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-203279-8@https.bugs.freebsd.org/bugzilla/> References: <bug-203279-8@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=203279 Jilles Tjoelker <jilles@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jilles@FreeBSD.org --- Comment #1 from Jilles Tjoelker <jilles@FreeBSD.org> --- If options that take an option-argument of ":" can be excluded forever, a simple workaround would be to skip option processing if there are 3 arguments (excluding argv[0]) and the second argument is ":". A stronger form of only treating "--" and "-e" as options would prevent adding any more options without compatibility problems. Perhaps this is acceptable, since expr is not a utility where major extensions are expected. -- 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-203279-8-XeHusCaikx>