Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Oct 2015 13:54:36 -0700
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        bugzilla-noreply@freebsd.org
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: [Bug 203279] /bin/expr operator : fails when the string has a leading hyphen.
Message-ID:  <662168A7-44B1-4B58-B883-F2CAB93E3909@gmail.com>
In-Reply-To: <bug-203279-8-XeHusCaikx@https.bugs.freebsd.org/bugzilla/>
References:  <bug-203279-8@https.bugs.freebsd.org/bugzilla/> <bug-203279-8-XeHusCaikx@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help


> On Oct 18, 2015, at 12:25, bugzilla-noreply@freebsd.org wrote:
> 
> 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.

It would also make FreeBSD more compatible with Linux/NetBSD.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?662168A7-44B1-4B58-B883-F2CAB93E3909>