Re: Dash as default shell

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

 



Once upon a time, Lennart Poettering <mzerqung@xxxxxxxxxxx> said:
> The shell is API.

Yep, and that API is the POSIX shell language, an extended version of
the Bourne shell.  It is a Linux curiousity that came along to use bash
as /bin/sh.

> Currently, if people write shell (#!/bin/sh) scripts
> on Fedora, they can be sure that the same language is available on all
> Fedora installations. If you suddenly make /bin/sh something that
> might be different on all systems, you pretty much break API there.

Writing "#!/bin/sh" and expecting bash in inherently non-portable.
Anything that runs on more than one platform will have already found
that out.  Saying that Fedora can't use anything other than bash as
/bin/sh because of that is a very poor argument.

If that's the case, why do we have the /bin/sh symlink?  Just remove it
and make the bash dependency explicit (so everything has to call
/bin/bash).

> In general, I am pretty sure that except a couple of programming
> language or UNIX aficionades very few people can actually correctly
> separate bashisms from true bourneshellisms.

It isn't that hard.
-- 
Chris Adams <linux@xxxxxxxxxxx>
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux