You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my script name has a space in it, using nix-shell as a shebang fails as it doesn't escape the space. This also happens if the name contains other shell metacharacters, such as foo{1,2}.sh, but a space is the most common way to reproduce this.
Steps To Reproduce
Create a new file named foo bar.sh with the contents:
This also happens if the script filename is fine but exists in a directory with such characters, and the script is executed using a path that includes the directory name.
Describe the bug
If my script name has a space in it, using
nix-shell
as a shebang fails as it doesn't escape the space. This also happens if the name contains other shell metacharacters, such asfoo{1,2}.sh
, but a space is the most common way to reproduce this.Steps To Reproduce
Create a new file named
foo bar.sh
with the contents:Mark it as executable and then execute it (or just pass it to
nix-shell
directly).Expected behavior
It should execute and echo
test
.Actual behavior
nix-env --version
outputnix-env (Nix) 2.3.7
The text was updated successfully, but these errors were encountered: