[Picolibc] [PATCH] Change #!/bin/bash interpreters to #!/usr/bin/env bash

Keith Packard keithp at keithp.com
Tue Sep 28 15:28:34 PDT 2021


leon at is.currently.online writes:

> From: Leon Schuermann <leon at is.currently.online>
>
> This change is required to support distributions which do not feature
> a bash shell installed under `/bin/bash`, for example NixOS. Hence, in
> their current form, scripts specifying this interpreter path cannot be
> executed on NixOS and will thus make the compilation process fail. A
> common and sensible solution to this issue is to change the
> interpreter path to `/usr/bin/env bash`. This will also use the bash
> shell of the user's environment, which may be the expected behavior.

Does your OS have a shell installed as /bin/sh? If so, I think it might
be better to use that instead of depending on /usr/bin/env?

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://keithp.com/pipermail/picolibc/attachments/20210928/30c7d530/attachment.sig>


More information about the Picolibc mailing list