On Mon, Mar 25, 2019 at 10:27 AM <devel-request@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
On Mon, 25 Mar 2019 08:16:43 -0700 Kevin Fenzi <kevin@xxxxxxxxx> wrote:
On 3/25/19 8:02 AM, Adam Williamson wrote:
> On Mon, 2019-03-25 at 12:59 +0100, Dridi Boukelmoune wrote:
>> And since RPM appears to be configurable for the
>> default interpreter, have it use /usr/bin/bash by default.
>=20
> TBH, it seems to me reasonable that we just do this.
>=20
> If our position is that we actually expect Fedora package scriptlets to=
> be executed by bash and don't think it's a problem if they don't work
> when executed by some other shell, why not this make this clear and
> explicit in this way instead of having the default be sh, but then tell=
> people sh must be bash?
Doesn't bash behave slightly differently when invoked as 'sh' ?
Long ago it used to, but I don't know if thats still the case...
Yes, it enters POSIX mode after startup. From 'info bash':
6.11 Bash POSIX Mode
====================
Starting Bash with the '--posix' command-line option or executing 'set
-o posix' while Bash is running will cause Bash to conform more closely
to the POSIX standard by changing the behavior to match that specified
by POSIX in areas where the Bash default differs.
When invoked as 'sh', Bash enters POSIX mode after reading the
startup files.
Details of the differences follow in that section.
--
Steven Bonneville <sbonnevi@xxxxxxxxxx>
Principal Technical Curriculum Architect
Red Hat | Red Hat Training Phone: +1-612-638-0507
gpg: 1024D/221D06FF 68B1 3E66 A351 6485 B9AF 24D8 3DF5 B50B 221D 06FF
Principal Technical Curriculum Architect
Red Hat | Red Hat Training Phone: +1-612-638-0507
gpg: 1024D/221D06FF 68B1 3E66 A351 6485 B9AF 24D8 3DF5 B50B 221D 06FF
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx