Re: [PATCH] Allow == as synonym for = in test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/07/2011 05:05 PM, Guido Berhoerster wrote:
> * David A. Wheeler <dwheeler@xxxxxxxxxxxx> [2011-03-08 00:03]:
>> Dan Muresan:
>>> ...the crusade against "bashisms" has broken so many scripts and wasted so
>>> many man-hours for Debian / Ubuntu users.
> 
> The hard work of many Debian maintainers fixing broken shell
> scripts and pushing these changes upstream is certainly not
> wasted time but a great service to other platforms as well by
> improving portability. If you want bash or ksh scripts to work
> why do you use dash?
> 
>> Right.  Many existing scripts depend on "==", not "=", and its implementation is trivial.
> 
> That is a very weak argument as it applies to many such features,
> the question is whether to create precendent here and where that'll
> go.

Personally, I _don't_ want to see this in dash _until_ the Austin Group
makes their ruling on the pending discussion item of whether the next
version of POSIX will be requiring support for '=='.  But if the Austin
Group ultimately requires it, then we've proven that it's very easy to
add to dash at that time.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux