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

Allow dashes in environment variable names #2373

Merged
merged 2 commits into from
Nov 11, 2015

Conversation

shin-
Copy link

@shin- shin- commented Nov 11, 2015

See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

Environment variable names used by the utilities in the Shell and Utilities volume of POSIX.1-2008 consist solely of uppercase letters, digits, and the ( '_' ) from the characters defined in Portable Character Set and do not begin with a digit. Other characters may be permitted by an implementation; applications shall tolerate the presence of such names.

Fixes #2370

See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
Environment variable names used by the utilities in the Shell and
Utilities volume of POSIX.1-2008 consist solely of uppercase letters,
digits, and the <underscore> ( '_' ) from the characters defined in
Portable Character Set and do not begin with a digit. Other characters may
be permitted by an implementation; applications shall tolerate the
presence of such names.

Signed-off-by: Joffrey F <[email protected]>
@shin- shin- added this to the 1.5.1 milestone Nov 11, 2015
@shin- shin- self-assigned this Nov 11, 2015
@dnephin
Copy link

dnephin commented Nov 11, 2015

LGTM once build is green

shin- added a commit that referenced this pull request Nov 11, 2015
Allow dashes in environment variable names
@shin- shin- merged commit 0a35fd9 into docker:master Nov 11, 2015
@thaJeztah
Copy link
Member

ah, yes, we recently removed all validation for env-vars. although many names are not valid according to the specs, we discussed that and decided that it's the responsibility of the software running inside the container to handle invalid names, not docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants