2020-05-17 05:25:40 -07:00
|
|
|
# Start an interactive bash session in the current bash environment.
|
|
|
|
|
2020-05-17 14:46:44 -07: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 05:25:40 -07:00
|
|
|
# BASH_ENVIRONMENT contains definitions of read-only variables like 'BASHOPTS' that
|
2020-05-17 14:46:44 -07:00
|
|
|
# cause warnings on evaluation. Suppress these warnings while sourcing.
|
2020-05-17 05:25:40 -07:00
|
|
|
BASH_ENVIRONMENT=<(declare -p; declare -pf) \
|
2020-05-17 14:46:44 -07:00
|
|
|
USAGE_INFO="$USAGE_INFO" \
|
|
|
|
bash --rcfile <(echo '
|
|
|
|
source $BASH_ENVIRONMENT 2>/dev/null
|
|
|
|
echo "$USAGE_INFO"
|
|
|
|
')
|