We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
Which side is the real env and which side is inside try?
Fixing $PWD and $OLDPWD is easy. Fixing $_ is trickier:
$PWD
$OLDPWD
$_
: mgreenbe@hippogriff:~/try [configure-install] ; echo $_ bash : mgreenbe@hippogriff:~/try [configure-install] ; _=flash : mgreenbe@hippogriff:~/try [configure-install] ; echo $_ : mgreenbe@hippogriff:~/try [configure-install] ; _=flash bash -c 'echo hi $_' hi /usr/bin/bash
Bash won't let you set $_, even in a local-assignment We might be able to trick it using env, as in /usr/bin/env _="$_" ...:
env
/usr/bin/env _="$_" ...
: mgreenbe@hippogriff:~/try [configure-install] ; env _=flash bash -c 'echo hi $_' hi flash
Sorry, something went wrong.
ezrizhu
No branches or pull requests
The text was updated successfully, but these errors were encountered: