Maxime Devos writes: […] >> Replace '#!/usr/bin/env bash' with '#!/bin/bash' >> >> Maybe a /bin/sh would be more Guix friendly, but shellcheck warns about >> export -f does not exist in posix shell. Thoughts are welcome ;-) > > /bin/bash doesn't exist on Guix System, so it seems a bit weird to me > to use that in Guix. Anyway, I think shellcheck should classify > '#!/usr/bin/env bash' as a bash shell instead of a posix shell? Yes, also /usr/bin/env does not exist on Guix as well. So in that sense both /bin/bash and /usr/bin/env bash are equal. I see special-files-service-type has an example about creating /usr/bin/env, so probable should use /usr/bin/env bash in test's shebang line to make shellcheck happy.