[issue11095] subprocess popen broken for bytes and backslash

2011-02-02 Thread Eric Smith
Eric Smith added the comment: 1: subprocess.call is documented as taking a string, not bytes. If you think it should also take bytes, I suggest opening a separate bug as a feature request. 2: You're running into both Python and the shell escaping. If you have an odd number of backslashes, the

[issue11095] subprocess popen broken for bytes and backslash

2011-02-01 Thread kai zhu
Changes by kai zhu : -- components: +IO, Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11095] subprocess popen broken for bytes and backslash

2011-02-01 Thread kai zhu
New submission from kai zhu : noticed when trying to call grep w/ backslashes in regexp, in shell mode. same behavior on python2.5 & python3.2 in shell mode: 1. bytes is broken 2. 1st character after backslash is always silently truncated (with exception of '\\') $ python3.2 Python 3.2rc1+ (py