You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config: Adjust process.env to immediately punt to POSIX
The uppercase letter / digit / underscore restriction is just for
"variables used by the utilities in the Shell and Utilities volume of
IEEE Std 1003.1-2001".
Copying over some POSIX wording and then linking to POSIX didn't seem
like much gain. Just point people at POSIX and let them read about
the name=value definition, charset suggestions, etc. there.
Also link specifically to chapter 8 section 1 (instead of just chapter
8).
Rob Dolin had suggested "platform-appropriate" wording [1], but it
seems like Visual Studio 2015 supports an environment-variable array
with the same semantics [2], and providing an explicit
"platform-appropriate" wiggle seems like it's adding useless
complication.
[1]: http://ircbot.wl.linuxfoundation.org/meetings/opencontainers/2016/opencontainers.2016-05-18-17.01.log.html#l-54
[2]: https://msdn.microsoft.com/en-us/library/431x4c1w.aspx
Signed-off-by: W. Trevor King <[email protected]>
Copy file name to clipboardExpand all lines: config.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,9 +95,7 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se
95
95
***`terminal`** (bool, optional) specifies whether you want a terminal attached to that process, defaults to false.
96
96
***`cwd`** (string, required) is the working directory that will be set for the executable.
97
97
This value MUST be an absolute path.
98
-
***`env`** (array of strings, optional) contains a list of variables that will be set in the process's environment prior to execution.
99
-
Elements in the array are specified as Strings in the form "KEY=value".
100
-
The left hand side MUST consist solely of letters, digits, and underscores `_` as outlined in [IEEE Std 1003.1-2001](http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html).
98
+
***`env`** (array of strings, optional) with the same semantics as [IEEE Std 1003.1-2001's `environ`][ieee-1003.1-2001-xbd-c8.1].
101
99
***`args`** (array of strings, required) executable to launch and any flags as an array.
102
100
The executable is the first element and MUST be available at the given path inside of the rootfs.
103
101
If the executable path is not an absolute path then the search $PATH is interpreted to find the executable.
@@ -691,6 +689,7 @@ Here is a full example `config.json` for reference.
0 commit comments