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

Infinite loop #8

Closed
komljen opened this issue Nov 7, 2017 · 1 comment
Closed

Infinite loop #8

komljen opened this issue Nov 7, 2017 · 1 comment

Comments

@komljen
Copy link

komljen commented Nov 7, 2017

When using a default value that will have a : somewhere in the text, envsubst will go to infinite loop. For example:

$ echo '${SOME_URL-http://localhost:8080}' | envsubst

If I remove the quotes or add a double quotes it will work fine:

$ echo ${SOME_URL-http://localhost:8080} | envsubst
or
$ echo "${SOME_URL-http://localhost:8080}" | envsubst

However, if I want to replace the same env variable in the file it will be stuck:

$ cat file.txt
property=${SOME_URL-http://localhost:8080}

$ envsubst <file.txt >file2.txt
a8m added a commit that referenced this issue Nov 21, 2017
@a8m
Copy link
Owner

a8m commented Nov 22, 2017

Thanks for reporting this issue @komljen. it solved with 9163442.

@a8m a8m closed this as completed Nov 22, 2017
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

2 participants