Skip to content
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

Fix stashing aliases with a space in double quotes #102

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

Conversation

nomadsherpa
Copy link

The problem

eval "__varstash_alias__$stash_name=\"$alias_def\"" crashes in lib/varstash:111 when I want to stash an alias like alias some_alias='echo "ORIG ALIAS"'.

The problem occurs when we have a space inside double quotes in the alias.

The fix

Escape double quotes.

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.

1 participant