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
|
|
|
|
Run "c" to start a shell session inside the node'
|
|
|
|
|
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.
|
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"
|
|
|
|
')
|