[issue13543] shlex with string ending in space gives "ValueError: No closing quotation"

2011-12-09 Thread R. David Murray
R. David Murray added the comment: And just for your information, as far as I know *no one* knows what standard (or model) non-posix mode shlex is based on. -- ___ Python tracker _

[issue13543] shlex with string ending in space gives "ValueError: No closing quotation"

2011-12-09 Thread ekorn
ekorn added the comment: https://github.com/ipython/ipython/issues/1109#issuecomment-3072571 It seems this was an IPython bug due to slight abuse of the shlex module. Closing as invalid; thanks for your help. -- resolution: -> invalid status: open -> closed __

[issue13543] shlex with string ending in space gives "ValueError: No closing quotation"

2011-12-08 Thread ekorn
ekorn added the comment: FYI, Min RK commented on the IPython issue: https://github.com/ipython/ipython/issues/1109#issuecomment-3071470 In short, shlex.shlex('blob f(" ")', posix=False) fails, whereas shlex.shlex('blob f( " ")', posix=False) "The problem appears to be that Python source obv

[issue13543] shlex with string ending in space gives "ValueError: No closing quotation"

2011-12-06 Thread R. David Murray
R. David Murray added the comment: Why do you consider this to be a bug? You set posix=False and whitespace_split=True, so it seems to me that according to the documented rules the " inside the word ("a is as documented not recognized as a quote character. If you use either posix=True or wh

[issue13543] shlex with string ending in space gives "ValueError: No closing quotation"

2011-12-06 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue13543] shlex with string ending in space gives "ValueError: No closing quotation"

2011-12-06 Thread ekorn
New submission from ekorn : It seems shlex fails on processing strings ending in space, causing this bug that I reported for IPython: https://github.com/ipython/ipython/issues/1109 Fernando Perez made a minimal example of the problem, quoted below. As he points out, it would be best to fix thi