Mailinglist Archive: opensuse-factory (401 mails)

< Previous Next >
Re: [opensuse-factory] Can we assume that /bin/sh is bash?

On 14/03/2019 00:52, Martin Wilck wrote:
On Wed, 2019-03-13 at 22:58 +1030, Simon Lees wrote:

the point is we need to create an openSUSE definition of posix that
clear and everyone understands such a definition could be "the subset
commands / syntax that works on both bash and dash",

I'd rather settle down on _one_ shell to test with.


That indeed would be nice, but I don't think its really possible without writing another reference shell (or forking an existing one to remove features until we get close enough). However there exists checkers that catch most if not all of the common errors and having them setup in the build process to do the majority of testing automatically (so in general packagers need to do nothing) seems like a better approach, then in case someone really wants to argue semantics we can point them to does the script run in bash and dash, if yes its acceptable if not its not for example.


Simon Lees (Simotek)

Emergency Update Team
SUSE Linux Adelaide Australia, UTC+10:30
GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups