Subject: Re: test: ==: unexpected operator
To: Hubert Feyrer <hubert@feyrer.de>
From: Geert Hendrickx <ghen@NetBSD.org>
List: tech-userlevel
Date: 09/22/2006 09:40:42
On Fri, Sep 22, 2006 at 02:06:08AM +0200, Hubert Feyrer wrote:
> 
> bash/Linux allows "==" as an alternative to "=" in their test(1) command.
> I wonder if we want to save some trouble and just make our test(1)
> silently accept that too, instead of fixing all the broken scripts out
> there.
> 
> It'd be an extension to POSIX, so I don't see much of a problem.

Not that I disagree with this small extensions, but it's against the exact
reason why we tell people to write #!/bin/sh scripts instead of #!/bin/bash
scripts.  If we start the extend our sh(1) with bash "features", we are
contributing to script-unportability.

	Geert