Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2021 12:20:17 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Alexey Dokuchaev <danfe@freebsd.org>
Cc:        Warner Losh <imp@freebsd.org>, src-committers <src-committers@freebsd.org>, "<dev-commits-src-all@freebsd.org>" <dev-commits-src-all@freebsd.org>, dev-commits-src-main@freebsd.org
Subject:   Re: git: 3f197b101f71 - main - release: Remove C-like string comparison operator
Message-ID:  <CANCZdfoyGfvrELm2nTVk9t5H5YNWJSRyq%2Bsjitjuo-=UCYUf5Q@mail.gmail.com>
In-Reply-To: <YNyxE9nM/g4VaPsi@FreeBSD.org>
References:  <202106301720.15UHKkUQ079377@gitrepo.freebsd.org> <YNyxE9nM/g4VaPsi@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 30, 2021 at 11:59 AM Alexey Dokuchaev <danfe@freebsd.org> wrote:

> On Wed, Jun 30, 2021 at 05:20:46PM +0000, Warner Losh wrote:
> > commit 3f197b101f71ee4f4949c53bf330f61b43749ce9
> >
> >     release: Remove C-like string comparison operator
> >
> >     Per [(1), i.e. test(1), the string comparison operator should be `=`,
> >     not `==` in sh(1) scripts.
> >
> >     No functional change. FreeBSD's test accepts `==` as an alias for `=`
> >     for compatibility with gnu test's `==` extension.
>
> Nice, thanks, but why didn't you remove those needless quotes around
> static stings, e.g. "GPT" -> GPT?
>

Sure, that could also be done. However, I'll leave it to the re@ team. It
works
either way, and I've seen both styles in the tree (and outside it  as well).

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoyGfvrELm2nTVk9t5H5YNWJSRyq%2Bsjitjuo-=UCYUf5Q>