[IPython-dev] Bug in pysh?

Prabhu Ramachandran prabhu_r at users.sf.net
Wed Dec 15 05:29:29 EST 2004


Hi,

I just ran into this little problem with pysh-0.6.5

   |35> ls -l | tr -s [:blank:] | cut -d' ' -f 5-5
[...]

This works fine.  Unfortunately, this does not:

   $$a = ls -l | tr -s [:blank:] | cut -d' ' -f 5-5
   cut: the delimiter must be a single character
   Try `cut --help' for more information.

To get this to work I need to escape the quotes like so:

   $$a = ls -l | tr -s [:blank:] | cut -d\' \' -f 5-5

I was surprised at first but realized it was the quoting.  So if this
is fixable, that would be cool.  If not perhaps it could be documented
somewhere?

Thanks.
cheers,
prabhu




More information about the IPython-dev mailing list