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
direnv exec
: impossible command line
#492
Comments
yes it's not great, the result of organic growth. But I don't want to break backward-compatibility now. The best solution is to always pass the DIR and use |
Since the behavior always requires |
Oh wait … wait Lines 33 to 43 in e05d32a
I didn’t expect this to be a thing. |
yeah, it's bad... |
The “just a command” case is broken at the moment however:
I think that needs to be fixed nonetheless. |
Ok, let's make the DIR mandatory then. It must have been broken for a long time and nobody complained. |
``` $ direnv exec bash -c "true" direnv: error stat bash: no such file or directory $ direnv exec bash direnv: error stat bash: no such file or directory ``` Meaning leaving out the DIR argument was never really an option. Closes: direnv#492
exec [DIR] COMMAND [...ARGS]:
Means that both
DIR
and an unspecified amount ofARGS
are optional.It should be impossible for
direnv
to figure out whether the second argument is aDIR
orCOMMAND
.And indeed:
direnv version
: 2.19.2The text was updated successfully, but these errors were encountered: