2020-05-17 12:25:40 +00:00
|
|
|
# Start an interactive bash session in the current bash environment.
|
|
|
|
|
2020-05-17 21:46:44 +00:00
|
|
|
USAGE_INFO='
|
|
|
|
Starting shell...
|
|
|
|
Run "c COMMAND" to execute a command on the bitcoin node
|
2020-10-18 11:41:55 +00:00
|
|
|
Run "c" to start a shell session inside the node
|
|
|
|
|
|
|
|
Example:
|
|
|
|
c systemctl status bitcoind
|
|
|
|
'
|
2020-05-17 21:46:44 +00:00
|
|
|
|
2020-05-17 12:25:40 +00:00
|
|
|
# BASH_ENVIRONMENT contains definitions of read-only variables like 'BASHOPTS' that
|
2020-05-17 21:46:44 +00:00
|
|
|
# cause warnings on evaluation. Suppress these warnings while sourcing.
|
2022-08-16 19:00:00 +00:00
|
|
|
#
|
|
|
|
# shellcheck disable=SC2016
|
2020-05-17 12:25:40 +00:00
|
|
|
BASH_ENVIRONMENT=<(declare -p; declare -pf) \
|
2020-05-17 21:46:44 +00:00
|
|
|
USAGE_INFO="$USAGE_INFO" \
|
|
|
|
bash --rcfile <(echo '
|
|
|
|
source $BASH_ENVIRONMENT 2>/dev/null
|
|
|
|
echo "$USAGE_INFO"
|
|
|
|
')
|