diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-08-29 12:02:43 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-08-29 12:02:43 +0200 |
commit | 89452b20e5073feb28b294a707342ef144f4b5f0 (patch) | |
tree | 13b7a042cd7acb0dd0019b5ebab628bfcf5226d9 /README.md | |
parent | bcdd2cb33797412cce1f1014d265a71461676cff (diff) |
lib: improve getenv() and split() implementations
- getenv(): Allow querying the entire environment by omiting variable name
- split(): Properly handle null bytes in subject and separator strings
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -736,9 +736,10 @@ a = filter(["foo", 1, true, null, 2.2], function(v) { // a = [1, 2.2] ``` -#### 6.10. `getenv(name)` +#### 6.10. `getenv([name])` -Return the value of the given environment variable. +Return the value of the given environment variable. If the variable name is +omitted, returns a dictionary containing all environment variables. #### 6.11. `hex(x)` |