summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2017-02-26 00:28:12 -0600
committerNicolas Williams <nico@cryptonector.com>2017-02-26 00:39:24 -0600
commit3504bd9a2a9e9cb1e4864b69821b446d15fab85d (patch)
treece8e9d14641eb1791a7b623275178451f1e454cb /docs
parent1a8a0ae0f55858a8f0a5e8c73f71e1e609b820f4 (diff)
Add $ENV builtin variable to access environment
Diffstat (limited to 'docs')
-rw-r--r--docs/content/3.manual/manual.yml14
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index a0d713e7..84675182 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -1666,12 +1666,22 @@ sections:
output:
- '[{"a":{"b":2}}]'
- - title: "`env`"
+ - title: "`$ENV`, `env`"
body: |
- Outputs an object representing jq's environment.
+ `$ENV` is an object representing the environment variables as
+ set when the jq program started.
+
+ `env` outputs an object representing jq's current environment.
+
+ At the moment there is no builtin for setting environment
+ variables.
examples:
+ - program: '$ENV.PAGER'
+ input: 'null'
+ output: ['"less"']
+
- program: 'env.PAGER'
input: 'null'
output: ['"less"']