[Buildroot] [PATCH] support/scripts: fix shebang with bash
Peter Korsgaard
peter at korsgaard.com
Thu Jun 8 21:58:27 UTC 2017
>>>>> "François" == François Perrad <francois.perrad at gadz.org> writes:
> 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
And /bin/sh is a symlink to /run/current-system/sw/bin/bash? Otherwise I
don't understand how the logic in Makefile and
support/dependencies/dependencies.sh could work?
What about packages? Are there no package build systems that hardcodes
/bin/bash?
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list