Skip to content

doc: use overwrite (>) instead of append (>>) for one-shot PSBT files in offline-signing-tutorial.md - #35890

Open
GuTS805 wants to merge 1 commit into
bitcoin:masterfrom
GuTS805:fix-offline-signing-tutorial-append
Open

doc: use overwrite (>) instead of append (>>) for one-shot PSBT files in offline-signing-tutorial.md#35890
GuTS805 wants to merge 1 commit into
bitcoin:masterfrom
GuTS805:fix-offline-signing-tutorial-append

Conversation

@GuTS805

@GuTS805 GuTS805 commented Aug 5, 2026

Copy link
Copy Markdown

funded_psbt.txt and final_psbt.txt are each expected to hold exactly one PSBT/hex string, consumed via unquoted $(cat ...) in every later step. Using append (>>) instead of overwrite (>) means re-running the send or walletprocesspsbt step without deleting the output file first appends a second line, which $(cat ...) then word-splits into two arguments, causing decodepsbt/analyzepsbt/walletprocesspsbt/sendrawtransaction to reject the call with too many arguments.

Fixes #35862.

… in offline-signing-tutorial.md

funded_psbt.txt and final_psbt.txt are each expected to hold exactly one
PSBT/hex string, consumed via unquoted $(cat ...) in every later step. Using
append (>>) instead of overwrite (>) means re-running the send or
walletprocesspsbt step without deleting the output file first appends a
second line, which $(cat ...) then word-splits into two arguments, causing
decodepsbt/analyzepsbt/walletprocesspsbt/sendrawtransaction to reject the
call with too many arguments.

Fixes bitcoin#35862.
@DrahtBot DrahtBot added the Docs label Aug 5, 2026
@DrahtBot

DrahtBot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35890.

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

@maflcko maflcko added the Wallet label Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc: offline-signing-tutorial.md uses >> (append) instead of > (overwrite) for one-shot PSBT files

3 participants