Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse env configuration in posix mode #329

Merged
merged 1 commit into from
Apr 19, 2014
Merged

Conversation

sfriesel
Copy link
Contributor

Fixes #328

This allows (escaped) quotes in the values as well as empty
values.

Fixes Supervisor#328

This allows (escaped) quotes in the values as well as empty
values.
@tseaver
Copy link
Contributor

tseaver commented Dec 17, 2013

+1

@mnaberez
Copy link
Member

Supervisor still supports Python 2.5 but the posix mode for shlex was added in 2.6. There has been talk recently about a new major version of Supervisor that would raise the Python requirement to 2.6. If that happens, I would like to merge this.

@mnaberez mnaberez merged commit aa7d40e into Supervisor:master Apr 19, 2014
mnaberez added a commit that referenced this pull request Jan 17, 2017
Pull #329 changed shlex to posix mode to fix quotes inside
quotes (#328).  A side effect of this change is that it
broke parsing empty quotes (#873).  This seems to be due
to a bug in shlex (http://bugs.python.org/issue21999).
Since no release version of Supervisor has shipped with
shlex in posix mode to support quotes inside quotes, we're
reverting it to fix support for empty quotes which has
shipped for many Supervisor versions.  Two unit tests
introduced in #329 pass without posix mode, so those tests
have been retained.  A unit test was also added for #873
in the previous commit.

Reopens #328
Partially reverts #329
Fixes #873
Closes #880
mnaberez added a commit that referenced this pull request May 27, 2017
Pull #329 changed shlex to posix mode to fix quotes inside
quotes (#328).  A side effect of this change is that it
broke parsing empty quotes (#873).  This seems to be due
to a bug in shlex (http://bugs.python.org/issue21999).
Since no release version of Supervisor has shipped with
shlex in posix mode to support quotes inside quotes, we're
reverting it to fix support for empty quotes which has
shipped for many Supervisor versions.  Two unit tests
introduced in #329 pass without posix mode, so those tests
have been retained.  A unit test was also added for #873
in the previous commit.

Reopens #328
Partially reverts #329
Fixes #873
Closes #880
@dgouldin
Copy link

It looks like posix was added in 2.3, unless I'm misreading: https://docs.python.org/release/2.4.4/lib/module-shlex.html

Is that not correct?

vereszol pushed a commit to vereszol/supervisor that referenced this pull request Dec 8, 2023
Fixes Supervisor#328

This allows (escaped) quotes in the values as well as empty
values.

--
This was done in pull request Supervisor#329 but removed as it
broke parsing empty quotes (Supervisor#873) due to a bug in shlex
(http://bugs.python.org/issue21999). This bug is fixed
so posix mode can be used.

Brings back Supervisor#329
Partially reverts Supervisor#880
vereszol pushed a commit to vereszol/supervisor that referenced this pull request Dec 8, 2023
Fixes Supervisor#328

This allows (escaped) quotes in the values as well as empty
values.

This was done in pull request Supervisor#329 but removed as it
broke parsing empty quotes (Supervisor#873) due to a bug in shlex
(http://bugs.python.org/issue21999). This bug is fixed
so posix mode can be used.

Brings back Supervisor#329
Partially reverts Supervisor#880
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Not possible to have quotes in environment variable settings
4 participants