diff options
author | Thien-Thi Nguyen <ttn@gnuvola.org> | 2020-11-26 01:00:54 -0500 |
---|---|---|
committer | Thien-Thi Nguyen <ttn@gnuvola.org> | 2020-11-26 01:00:54 -0500 |
commit | d805f3986b813bed2eb0eb71450028aa95b83db0 (patch) | |
tree | 40de844b6d372181911d9bbd08b0fef44b300994 /taler-wallet.rst | |
parent | ec1de3f4afdde93c34ff579dd37bf7433527cfd2 (diff) | |
download | docs-d805f3986b813bed2eb0eb71450028aa95b83db0.tar.gz docs-d805f3986b813bed2eb0eb71450028aa95b83db0.tar.bz2 docs-d805f3986b813bed2eb0eb71450028aa95b83db0.zip |
add several backslash-newline-space to shell script fragment
Diffstat (limited to 'taler-wallet.rst')
-rw-r--r-- | taler-wallet.rst | 17 |
1 files changed, 13 insertions, 4 deletions
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 |