Ludovic Courtès <[email protected]> writes: > "Zack Weinberg" <[email protected]> skribis: > >> I also plan to mandate env support the -S option, which is not in POSIX, >> but without it anyone who wants to point a #! line at awk without knowing >> the absolute path of the awk implementation is up a creek. > > Yes, this one is really necessary in practice. A common use for us is: > > #!/usr/bin/env -S guix repl -- > !# > ;; Scheme code starts here.
Well, for Guile specifically you can always just use exec. So, your example in particular can be written as: --8<---------------cut here---------------start------------->8--- #!/bin/sh exec guix repl -- "$0" "$@" !# ;; Scheme code starts here. --8<---------------cut here---------------end--------------->8--- I think that should work, no? Your point still holds for non-Guile scripts, true. Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.
signature.asc
Description: PGP signature
