In[4], typo, )
instead of }
, otherwise I would guess that when dooing ${test}
, {test}
is expended to TEST TEST TEST
, leading to $TEST TEST TEST
, and then $TEST
is expended again (in shell I suppose).
I say that because :
In [1]: test = 'PATH TEST TEST!!!'
In [2]: !echo "${test}"
/usr/local/bin:/usr/local/share/pyt.../.rvm/bin TEST TEST!!!
But you have to be carefull, IPython does its own variable expansion, $foo
or {foo}
(no dollar sign) expand to Python value of foo. Wherease Shell often use $FOO
or ${FOO}
(dollar AND Bracket).
In IPython, when using !
you have to use double dollar $$
for explicit dolar. not sure how to escape Brackets though.