Skip to content

Fix #1011 nixos doesnt have /bin/bash #1037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

loulecrivain
Copy link

Hello,

As previously discussed, please find attached the PR to fix #1011.
Summary of changes:

  • switched from execve to execvpe
  • minimal changes to test suite to accomodate switch to execvpe
  • added changelog fragment

I ran the regression test and the test suite, everything's green.

I did not add a fallback option, to be honest I don't think systems with bash installed in /bin, /usr/bin or elsewhere but without these directories being in the PATH are really a concern. If we really need this, I can take care to add it.

This should not break any user's configuration files, as execvpe also accepts absolute paths for executables.

(some systems have bash at a different place than /bin/bash)

fixes pyinvoke#1011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NixOS don't have /bin/bash!
1 participant