[Nix-dev] Dealing with non-Bash /bin/sh on non-NixOS

Shea Levy shea at shealevy.com
Fri Nov 9 19:38:54 CET 2012


On 11/09/2012 01:34 PM, Peter Simons wrote:
> Hi Shea,
>
>   > Because (as this thread illustrates) that will break things, to almost
>   > no gain.
>
> if all scripts get fixed not to assume /bin/sh to be Bash, then there is
> a significant gain to users of Nix on non-NixOS hosts. Doesn't that
> count for something?

Sure, so we can set up test environments for this. But don't break 
things for users to help developers hunt bugs.

>
>   > It's one thing to test locally with a dash /bin/sh to find
>   > packages with bad assumptions, it's another thing to break packages that
>   > currently work perfectly well for the vast majority of nix users.
>
> How do you test packages locally with /bin/sh pointing to Dash on NixOS?
> I had no idea that's possible.

# nix-build -A dash "<nixpkgs>" -o /bin/sh

> Take care,
> Peter
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev



More information about the nix-dev mailing list