examples: execute bash sessions in script environment

Previously, the sessions contained only explicitly exported variables
and functions.
This was fragile and in part buggy due to lacking exports.

Interactive features like user-defined aliases and functions are still
working as before.
This commit is contained in:
Erik Arvstedt
2020-05-17 14:25:40 +02:00
parent e3a6ca3bb1
commit 719dcd77bb
4 changed files with 9 additions and 3 deletions

View File

@@ -81,6 +81,6 @@ echo "Bitcoind data dir:"
sudo ls -al /var/lib/containers/demo-node/var/lib/bitcoind
# Uncomment to start a shell session here
# export -f c; bash -li
# . start-bash-session.sh
# Cleanup happens at exit (see above)