[issue7611] shlex not posix compliant when parsing "foo#bar"

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7611] shlex not posix compliant when parsing "foo#bar"

2011-11-27 Thread Meador Inge
Meador Inge added the comment: Here a some of the relevant links from POSIX 2008: 1. Shell Command Language - http://pubs.opengroup.org/onlinepubs/9699919799/idx/shell.html 3. Shell Command Language Rationale - http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap02.html Sec

[issue7611] shlex not posix compliant when parsing "foo#bar"

2011-11-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: The doc section has no reference, as in a live web link, to any version of the POSIX specification. This is unlike other doc sections that implement various RFCs (which also get updated). The docs also link to specific references for the Unicode version suppo

[issue7611] shlex not posix compliant when parsing "foo#bar"

2011-11-24 Thread Éric Araujo
Éric Araujo added the comment: > The manual just says "When operating in POSIX mode, shlex will try to be as > close as > possible to the POSIX shell parsing rules." but gives no reference to which > authority it is > following or what the rules are in either case. I think it actually does: Th

[issue7611] shlex not posix compliant when parsing "foo#bar"

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given that test_shlex.py tests for the current behavior, it is hard to call this a bug in the tracker sense of the term. I would only change with a new version. The manual just says "When operating in POSIX mode, shlex will try to be as close as possible to

[issue7611] shlex not posix compliant when parsing "foo#bar"

2010-01-01 Thread cadf
cadf added the comment: Here's a patch addressing the behavior described. -- keywords: +patch nosy: +cadf Added file: http://bugs.python.org/file15718/shlex_posix.diff ___ Python tracker ___

[issue7611] shlex not posix compliant when parsing "foo#bar"

2009-12-31 Thread Jan David Mol
Jan David Mol added the comment: Attached a program which shows the relevant behaviour: import shlex tests = [ "foo#bar", "foo #bar" ] for t in tests: print "%s -> %s" % (t,[x for x in shlex.shlex(t,posix=True)]) results in $ python lexer_test.py foo#bar -> ['foo'] foo #bar -> ['foo'] (e

[issue7611] shlex not posix compliant when parsing "foo#bar"

2009-12-31 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ferringb priority: -> normal stage: -> test needed versions: -Python 2.5 ___ Python tracker ___

[issue7611] shlex not posix compliant when parsing "foo#bar"

2009-12-31 Thread Jan David Mol
New submission from Jan David Mol : The shlex parser parses "foo#bar" as "foo", discarding the rest as a comment. This is actually one of the test cases, even in POSIX mode. However, POSIX (see below) only allows comments to start at the beginning of a token, so "foo#bar" has to result in a "foo