bashisms in meta-phosphor scripts
Mazur, Marta
marta.mazur at intel.com
Tue Apr 9 00:59:01 AEST 2019
Hi Brad,
Sorry for the delayed response. We plan to start working on this in near future. I'll open a github issue as you suggested.
Thanks,
Marta
-----Original Message-----
From: Brad Bishop [mailto:bradleyb at fuzziesquirrel.com]
Sent: Thursday, March 7, 2019 2:58 PM
To: Mazur, Marta <marta.mazur at intel.com>
Cc: openbmc at lists.ozlabs.org
Subject: Re: bashisms in meta-phosphor scripts
On Tue, Feb 19, 2019 at 07:08:00PM +0000, Mazur, Marta wrote:
>Hi all,
>
>We have to cut out bash from our system and use busybox ash as the only shell. I found several scripts in the meta-phosphor layer that are not POSIX compliant and therefore are unusable without bash.
>
>Has anyone run into this problem? Does anyone have plans to remove bash dependencies from this layer?
No plans that I am aware of, but I am in favor of being bash-free.
Thanks!
>
>Or maybe we could patch those scripts and submit the patches to upstream? It should increase portability to systems with any POSIX shell.
That would be great! Do you plan to work on this? While not required, if you open a github issue for it and tag it with a release, we can note that this work occurred in the release notes.
You might also consider adding something to the docs/anti-patterns.md for this to really solidify that we want to be POSIX compliant in meta-phosphor.
Thanks!
-brad
--------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by
others is strictly prohibited.
More information about the openbmc
mailing list