[Buildroot] [PATCH] support/scripts: fix shebang with bash

François Perrad francois.perrad at gadz.org
Thu Jun 8 21:07:23 UTC 2017


2017-06-08 16:47 GMT+02:00 Peter Korsgaard <peter at korsgaard.com>:

> >>>>> "Francois" == Francois Perrad <fperrad at gmail.com> writes:
>
>  > Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
>
> Out of interest, what distribution doesn't have bash in /bin?
> #!/bin/bash is a quite common shebang, and we use it in several places
> outside support/scripts.
>
>
I found this issue with NixOS (http://nixos.org/) where:
$ ls /bin
sh
$ ls /usr/bin
env
$ which bash
/run/current-system/sw/bin/bash
$ which which
/run/current-system/sw/bin/which

so, #!/bin/sh is the only shebang which doesn't require to start with
#!/usr/bin/env

François


> --
> Bye, Peter Korsgaard
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170608/e352d69e/attachment.html>


More information about the buildroot mailing list