[IPython-dev] [Ipython-svndiff] 2885 - Do not replace # w/ \# anymore

Hans Meine hans_meine@gmx....
Tue Dec 11 03:10:47 CST 2007


Am Dienstag, 11. Dezember 2007 07:55:24 schrieb Fernando Perez:
> In this case, the behavior that was in there was to ensure
> compatibility with the shell:
>
> In [1]: !echo hi # cmd
> hi # cmd
>
> Which is how the shell behaves:
>
> maqroll[~]> echo hi # cmd
> hi # cmd
>
> Now, after the above commit:
>
> In [1]: !echo hi # cmd
> hi

In bash, there is an "interactive comments" flag IIRC (settable with 'set');
for me, the latter is the desired behaviour.  (Eases copy-pasting code from
scripts.)

--
Ciao, /  /
     /--/
    /  / ANS


More information about the IPython-dev mailing list