Skip to content

Avoid shell for bitcoin-cli calls#126

Open
Asylian21 wants to merge 1 commit into
vicariousdrama:mainfrom
Asylian21:codex/safe-bitcoin-cli-subprocess
Open

Avoid shell for bitcoin-cli calls#126
Asylian21 wants to merge 1 commit into
vicariousdrama:mainfrom
Asylian21:codex/safe-bitcoin-cli-subprocess

Conversation

@Asylian21
Copy link
Copy Markdown
Contributor

Summary

  • build bitcoin-cli invocations as argument lists instead of shell command strings
  • parse configured Bitcoin CLI profile options with shlex.split and expand ${HOME}/~ values for the existing sample config style
  • replace the which ... | wc -l shell check with shutil.which

Validation

  • git diff --check
  • python3 -m py_compile scripts/vicariousbitcoin.py
  • smoke-checked getBitcoinCLICommand and runBitcoinCLI with mocked subprocess.check_output

@vicariousdrama
Copy link
Copy Markdown
Owner

Elegant

@Asylian21 Asylian21 marked this pull request as ready for review May 28, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants