From d805f3986b813bed2eb0eb71450028aa95b83db0 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Thu, 26 Nov 2020 01:00:54 -0500 Subject: add several backslash-newline-space to shell script fragment --- taler-wallet.rst | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'taler-wallet.rst') diff --git a/taler-wallet.rst b/taler-wallet.rst index 92c934ff..c26f5684 100644 --- a/taler-wallet.rst +++ b/taler-wallet.rst @@ -1104,11 +1104,16 @@ The following example does a simple withdrawal recoup: $ coins=$(taler-wallet-cli --wallet-db=mydb.json advanced dump-coins) # Find coin we want to revoke - $ rc=$(echo "$coins" | jq -r '[.coins[] | select((.denom_value == "INTKUDOS:5"))][0] | .coin_pub') + $ rc=$(echo "$coins" | \ + jq -r '[.coins[] | select((.denom_value == "INTKUDOS:5"))][0] | .coin_pub') + # Find the denom - $ rd=$(echo "$coins" | jq -r '[.coins[] | select((.denom_value == "INTKUDOS:5"))][0] | .denom_pub_hash') + $ rd=$(echo "$coins" | \ + jq -r '[.coins[] | select((.denom_value == "INTKUDOS:5"))][0] | .denom_pub_hash') + # Find all other coins, which will be suspended - $ susp=$(echo "$coins" | jq --arg rc "$rc" '[.coins[] | select(.coin_pub != $rc) | .coin_pub]') + $ susp=$(echo "$coins" | \ + jq --arg rc "$rc" '[.coins[] | select(.coin_pub != $rc) | .coin_pub]') # The exchange revokes the denom $ taler-exchange-keyup -r $rd @@ -1125,7 +1130,11 @@ The following example does a simple withdrawal recoup: # Now we buy something, only the coins resulting from recouped will be # used, as other ones are suspended - $ taler-wallet-cli --wallet-db=mydb.json testing test-pay -m https://backend.int.taler.net/ -k sandbox -a "INTKUDOS:1" -s "foo" + $ taler-wallet-cli --wallet-db=mydb.json testing test-pay \ + -m https://backend.int.taler.net/ \ + -k sandbox \ + -a "INTKUDOS:1" \ + -s "foo" $ taler-wallet-cli --wallet-db=mydb.json run-until-done -- cgit v1.2.3