NetBSD Problem Report #52410
From www@NetBSD.org Sun Jul 16 11:38:22 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id BD6D37A212
for <gnats-bugs@gnats.NetBSD.org>; Sun, 16 Jul 2017 11:38:22 +0000 (UTC)
Message-Id: <20170716113821.D171C7A269@mollari.NetBSD.org>
Date: Sun, 16 Jul 2017 11:38:21 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: Please make test support == as a syonym for =
X-Send-Pr-Version: www-1.0
>Number: 52410
>Category: bin
>Synopsis: Please make test support == as a syonym for =
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Jul 16 11:40:00 +0000 2017
>Closed-Date: Sat Dec 09 21:52:05 +0000 2017
>Last-Modified: Sat Dec 09 21:52:05 +0000 2017
>Originator: coypu
>Release: NetBSD 8.99.1
>Organization:
>Environment:
NetBSD loggy 8.99.1 NetBSD 8.99.1 (GENERIC) #82: Thu Jun 22 15:45:33 IDT 2017 fly@loggy:/home/fly/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
For other programming languages, = is used for assignment and == for equality, and people often try ==.
other shells support this, so the authors of other scripts won't see the breakage, only we will.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/52410: Please make test support == as a syonym for =
Date: Sun, 16 Jul 2017 18:29:19 +0200
On Sun, Jul 16, 2017 at 11:40:00AM +0000, coypu@sdf.org wrote:
> >Description:
> For other programming languages, = is used for assignment and == for equality, and people often try ==.
> other shells support this, so the authors of other scripts won't see the breakage, only we will.
As long as they don't commit to this silly bug in POSIX, I'm against it.
It's a completely pointless ksh/bashism. It took a while for even GNU
tools to "support" it consistently.
Joerg
From: Robert Elz <kre@munnari.OZ.AU>
To: Joerg Sonnenberger <joerg@bec.de>
Cc: gnats-bugs@NetBSD.org, netbsd-bugs@netbsd.org
Subject: Re: bin/52410: Please make test support == as a syonym for =
Date: Mon, 17 Jul 2017 00:38:58 +0700
Date: Sun, 16 Jul 2017 18:29:19 +0200
From: Joerg Sonnenberger <joerg@bec.de>
Message-ID: <20170716162919.GA10226@britannica.bec.de>
| As long as they don't commit to this silly bug in POSIX, I'm against it.
I agree. And for other programming languages := is used for
assignment and = for equality tests. Every language has its
own conventions.
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 09 Dec 2017 21:52:05 +0000
State-Changed-Why:
No interest in this.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.