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

passing variable with space #42

Closed
palica opened this issue Apr 20, 2018 · 2 comments
Closed

passing variable with space #42

palica opened this issue Apr 20, 2018 · 2 comments
Labels

Comments

@palica
Copy link
Contributor

palica commented Apr 20, 2018

how should I pass variable with space? eg. USE="this that" because every time I use laminarc set USE=$USE it gets truncated to USE='"this'

am I doing something wrong?

@ohwgiles
Copy link
Owner

The quotes in USE="this that" are parsed by bash and not saved as part of the variable itself. When bash interprets laminarc set USE=$USE it expands it to laminarc set USE=this that. You need to do laminarc set USE="$USE" or laminarc set "USE=$USE". See http://tldp.org/LDP/abs/html/quotingvar.html for more information

@palica
Copy link
Contributor Author

palica commented Apr 21, 2018

ok, yes got it working with USE="$USE"
thank you

@palica palica closed this as completed Apr 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants