This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author telmich
Recipients telmich
Date 2013-10-29.09:45:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383039956.76.0.904392606213.issue19430@psf.upfronthosting.co.za>
In-reply-to
Content
Background information:

cdist is written in python 3 and makes heavy use of argparse.
One common task is to run a cdist type with some arguments, which
in the end configure a remote system.

We triggered the bug by running

__line ps1 --file /etc/bash.bashrc --line "PS1='[\t] \[\033[1m\]\h\[\033[0m\]:\w\$ '"

which should have ensured that the line is found in /etc/bash.bashrc.

But in reality we found

PS1='[\t] \[\033[1m\]\h\[\033[0m\]:\w$ '

instead of

PS1='[\t] \[\033[1m\]\h\[\033[0m\]:\w\$ '

This is a rather nasty bug, as you would not suspect argparse doing that and dig through all your code looking for errors.
History
Date User Action Args
2013-10-29 09:45:56telmichsetrecipients: + telmich
2013-10-29 09:45:56telmichsetmessageid: <1383039956.76.0.904392606213.issue19430@psf.upfronthosting.co.za>
2013-10-29 09:45:56telmichlinkissue19430 messages
2013-10-29 09:45:56telmichcreate