diff options
author | Nicolas Williams <nico@cryptonector.com> | 2017-02-26 00:28:12 -0600 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2017-02-26 00:39:24 -0600 |
commit | 3504bd9a2a9e9cb1e4864b69821b446d15fab85d (patch) | |
tree | ce8e9d14641eb1791a7b623275178451f1e454cb /jq.1.prebuilt | |
parent | 1a8a0ae0f55858a8f0a5e8c73f71e1e609b820f4 (diff) |
Add $ENV builtin variable to access environment
Diffstat (limited to 'jq.1.prebuilt')
-rw-r--r-- | jq.1.prebuilt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/jq.1.prebuilt b/jq.1.prebuilt index c4d25ea7..04b90715 100644 --- a/jq.1.prebuilt +++ b/jq.1.prebuilt @@ -1830,13 +1830,23 @@ jq \'walk( if type == "object" then with_entries( \.key |= sub( "^_+"; "") ) els . .IP "" 0 . -.SS "env" -Outputs an object representing jq\'s environment\. +.SS "$ENV, env" +\fB$ENV\fR is an object representing the environment variables as set when the jq program started\. +. +.P +\fBenv\fR outputs an object representing jq\'s current environment\. +. +.P +At the moment there is no builtin for setting environment variables\. . .IP "" 4 . .nf +jq \'$ENV\.PAGER\' + null +=> "less" + jq \'env\.PAGER\' null => "less" |