summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-06-16 13:48:06 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-06-16 13:48:06 +0000
commit292b0b4eef0be28a986cc8f23df4779bae8d2d33 (patch)
tree8675f961b3f82dec090f9c19c5aba36a097a8dcd
parentda4e3e4fc292208dd61558b19ce1398d5ca59e7d (diff)
Update website
-rw-r--r--manual/index.html9
-rw-r--r--manual/v1.6/index.html9
2 files changed, 16 insertions, 2 deletions
diff --git a/manual/index.html b/manual/index.html
index 7b739ce2..3fea344a 100644
--- a/manual/index.html
+++ b/manual/index.html
@@ -166,7 +166,14 @@ as <code>jq foo</code>, which will generally fail because <code>foo is not
defined</code>. 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 <code>-f program-file</code> option), but then
-double-quotes in the jq program need backslash escaping.</p>
+double-quotes in the jq program need backslash escaping. When using
+the Powershell (<code>powershell.exe</code>) or the Powershell Core
+(<code>pwsh</code>/<code>pwsh.exe</code>), use single-quote characters around the jq
+program and backslash-escaped double-quotes (<code>\"</code>) inside the jq
+program.</p>
+<p>Unix shells: <code>jq '.["foo"]'</code>
+Powershell: <code>jq '.[\"foo\"]'</code>
+Windows command shell: <code>jq ".[\"foo\"]"</code></p>
<p>You can affect how jq reads and writes its input and output
using some command-line options:</p>
<ul>
diff --git a/manual/v1.6/index.html b/manual/v1.6/index.html
index 6520941c..98d6183f 100644
--- a/manual/v1.6/index.html
+++ b/manual/v1.6/index.html
@@ -165,7 +165,14 @@ as <code>jq foo</code>, which will generally fail because <code>foo is not
defined</code>. 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 <code>-f program-file</code> option), but then
-double-quotes in the jq program need backslash escaping.</p>
+double-quotes in the jq program need backslash escaping. When using
+the Powershell (<code>powershell.exe</code>) or the Powershell Core
+(<code>pwsh</code>/<code>pwsh.exe</code>), use single-quote characters around the jq
+program and backslash-escaped double-quotes (<code>\"</code>) inside the jq
+program.</p>
+<p>Unix shells: <code>jq '.["foo"]'</code>
+Powershell: <code>jq '.[\"foo\"]'</code>
+Windows command shell: <code>jq ".[\"foo\"]"</code></p>
<p>You can affect how jq reads and writes its input and output
using some command-line options:</p>
<ul>