Dollar escape #1025

Merged
merged 3 commits into from Nov 22, 2011

2 participants

@takluyver
IPython member

As pointed out by @stefanv and @minrk on #822, it should be possible to use a raw $ in shell commands, e.g. for environment variables. This allows that, with the "$$HOME" syntax.

@minrk
IPython member

Looks good to me. Do you want to add a test to cover '${foo}' -> '$bar'? That's one probably quite rare use case that I've had to deal with long ago, where the shell variable name is a Python variable you want to expand. This works just fine right now with the syntax above, but we might add the test case anyway.

@takluyver
IPython member

Yep, good idea. Done.

@minrk
IPython member

Thanks, I say go ahead and merge.

@takluyver takluyver merged commit aa30a66 into ipython:master Nov 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment