Added usage under Powershell to the manual (#2306)
This commit is contained in:
1 parent
c2026f5d9e
commit
11d909170e
2 files changed
+18
-2
No files matched your search
@@ -91,7 +91,15 @@ sections:
|
||||
defined`. When using the Windows command shell (cmd.exe) it's
|
||||
best to use double quotes around your jq program when given on the
|
||||
command-line (instead of the `-f program-file` option), but then
|
||||
double-quotes in the jq program need backslash escaping.
|
||||
double-quotes in the jq program need backslash escaping. When using
|
||||
the Powershell (`powershell.exe`) or the Powershell Core
|
||||
(`pwsh`/`pwsh.exe`), use single-quote characters around the jq
|
||||
program and backslash-escaped double-quotes (`\"`) inside the jq
|
||||
program.
|
||||
|
||||
Unix shells: `jq '.["foo"]'`
|
||||
Powershell: `jq '.[\"foo\"]'`
|
||||
Windows command shell: `jq ".[\"foo\"]"`
|
||||
|
||||
You can affect how jq reads and writes its input and output
|
||||
using some command-line options:
|
||||
|
||||
@@ -90,7 +90,15 @@ sections:
|
||||
defined`. When using the Windows command shell (cmd.exe) it's
|
||||
best to use double quotes around your jq program when given on the
|
||||
command-line (instead of the `-f program-file` option), but then
|
||||
double-quotes in the jq program need backslash escaping.
|
||||
double-quotes in the jq program need backslash escaping. When using
|
||||
the Powershell (`powershell.exe`) or the Powershell Core
|
||||
(`pwsh`/`pwsh.exe`), use single-quote characters around the jq
|
||||
program and backslash-escaped double-quotes (`\"`) inside the jq
|
||||
program.
|
||||
|
||||
Unix shells: `jq '.["foo"]'`
|
||||
Powershell: `jq '.[\"foo\"]'`
|
||||
Windows command shell: `jq ".[\"foo\"]"`
|
||||
|
||||
You can affect how jq reads and writes its input and output
|
||||
using some command-line options:
|
||||
|
||||
Reference in new issue
Block a user