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

$[VAR] string substitution does NOT work inside a command substitution #129

Closed
calfzhou opened this issue May 20, 2014 · 2 comments · Fixed by #130
Closed

$[VAR] string substitution does NOT work inside a command substitution #129

calfzhou opened this issue May 20, 2014 · 2 comments · Fixed by #130

Comments

@calfzhou
Copy link
Contributor

In drake's document, it saids that $[VAR] string substitution does work inside a command, but i found that it does NOT work (with drake 0.1.5).

In the document (section Command substitution), there is an example:

TEXT="a b c"
VAR=$(echo "$[TEXT]" | wc -w)         ; "3"

I tried it but the value of VAR is 1.

@calfzhou
Copy link
Contributor Author

This bug seems only occurs in v0.1.5. It works in v0.1.4 and early versions.

@calfzhou
Copy link
Contributor Author

The bug is caused by commit 7eaf49e

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 a pull request may close this issue.

1 participant