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

bug in substitute-env-vars #40

Open
nivpgir opened this issue Apr 1, 2018 · 0 comments
Open

bug in substitute-env-vars #40

nivpgir opened this issue Apr 1, 2018 · 0 comments

Comments

@nivpgir
Copy link

nivpgir commented Apr 1, 2018

I belive I found a bug in substitute-env-vars:
reproduction:
running the following command
(display (substitute-env-vars "$SHELL bla bla bla"))

output:

assertion-violation: argument of wrong type [string-length]
                     #f

expected:

"/bin/bash bla bla bla"

this won't happen if the given string is the variable name by itself, only if the string is a space separated words and a '$ sign in front of one of them.

I've looked at the implementation substitute-env-vars, and a fix could be changing '#/' in the end of the function with a '#\ '.
that at least works for me.

all of the above is valid, of course, if the function should be able to perform on strings which include multiple words... if not, I think it should at least be noted on the documentation.

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

No branches or pull requests

1 participant