summaryrefslogtreecommitdiffstats
path: root/docs/content/manual/manual.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/manual/manual.yml')
-rw-r--r--docs/content/manual/manual.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml
index 0d552c7f..431ebcbc 100644
--- a/docs/content/manual/manual.yml
+++ b/docs/content/manual/manual.yml
@@ -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: