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

Variable expansion in shell commands should work in substrings #2247

Closed
fperez opened this issue Aug 4, 2012 · 1 comment
Closed

Variable expansion in shell commands should work in substrings #2247

fperez opened this issue Aug 4, 2012 · 1 comment
Milestone

Comments

@fperez
Copy link
Member

fperez commented Aug 4, 2012

Consider:

b=10
!echo f$b
!echo f${b}.txt

the output is:

f10
f.txt

Our expansion logic works only if the variable to be expanded is either alone or at the end of a string. It would be more convenient if we also covered the second case, with the output being f10.txt, as it would make many common shell scenarios easier to type.

@fperez
Copy link
Member Author

fperez commented Aug 4, 2012

Never mind, f{b}.txt works, I'd forgotten. Closing.

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