Closed jhheider closed 1 month ago
Yea, this will also fail on NixOS, whereas '#!/usr/bin/env bash' will not. env being the only binary accessible in /usr/bin on NixOS.
@sweetbbak this issue will be solved in https://github.com/Ph0enixKM/Amber/pull/110#pullrequestreview-2079123482
While it's true that
/bin/bash
incompiler.rs
is a nearly foolproof method, certain environment managers, likepkgx
, may providebash
on a system on which it is not otherwise globally installed. Either trusting the path, or calling/usr/bin/env bash -c ...
allows for a wider variety of supported shells.Extremely minor issue, to be sure, but something I came across while packaging the compiler.