Skip to content

Fix stashing aliases with a space in double quotes#102

Open
sherpalabsio wants to merge 2 commits intoTarrasch:masterfrom
sherpalabsio:fix-stashing-aliases-with-space-in-double-quotes
Open

Fix stashing aliases with a space in double quotes#102
sherpalabsio wants to merge 2 commits intoTarrasch:masterfrom
sherpalabsio:fix-stashing-aliases-with-space-in-double-quotes

Conversation

@sherpalabsio
Copy link
Copy Markdown

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