-
Notifications
You must be signed in to change notification settings - Fork 68
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
shell quoting broken #155
Comments
The solution is to appropriately quote when we generate Would be easily resolved in a rewrite not in the shell. |
for arg in "$@"
do
case $arg in
(*[$(printf " \n\t()<>&;|\`?*\$\"'")\\]*)
quoted=$(echo "$arg" | sed -e "s/'/'\\\\''/")
printf "'%s' " "$quoted";;
(*) printf "%s " "$arg";;
esac
done
printf "\n" is a workable first cut. |
Our tests expect that I don't see how we can support both this existing behavior and appropriate quoting of things like Unless you have a better idea, I'll delete the branch and close the issue. |
I don't have a better idea, feel free to delete the branch. I'll close the issue once the docs has been updated. |
try bash -c "echo a"
actually executes
bash -c echo a
The text was updated successfully, but these errors were encountered: