From: Chris Koeritz Date: Sat, 11 Nov 2017 13:13:07 +0000 (-0500) Subject: working finally. argh. X-Git-Tag: 2.140.96^2~3 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=5e0cf6044159dd34b93294af829905b74c2b0e36;p=feisty_meow.git working finally. argh. this is a complicated bit of twisty scripting. thanks to article here for an approach that actually works for starting bash and keeping it resident, unlike several approaches that i tried: https://unix.stackexchange.com/questions/123103/how-to-keep-bash-running-after-command-execution --- diff --git a/scripts/core/launch_feisty_meow.sh b/scripts/core/launch_feisty_meow.sh index 65a579a5..a814bc24 100644 --- a/scripts/core/launch_feisty_meow.sh +++ b/scripts/core/launch_feisty_meow.sh @@ -18,8 +18,6 @@ ############## -echo "yodel; feisty apex=$FEISTY_MEOW_APEX; feisty scripts=$FEISTY_MEOW_SCRIPTS" - # this script cannot handle figuring out where it lives, so approaches that # get the WORKDIR will fail. this is a consequence of this always being used # in bash's 'source' directive, which does not pass the script name as @@ -50,16 +48,17 @@ directory where it is stored, e.g.: and run this command (the whole unwieldy thing on multiple lines): -echo pwd outside \$(pwd\) ; +############## exec bash -i 3<&- <&4 EOF +############## Note that this assumes that the .bashrc file could still need editing to fix an erroneous FEISTY_MEOW_APEX variable, so we skip it above when bash runs. @@ -79,15 +78,12 @@ else fi #; /bin/bash -i --norc --noprofile\" > \$HOME/fm-fix -#; exec /bin/bash -i --norc --noprofile -c 'bash \$HOME/fm-fix ; echo hello ; read line; read line ;read line' +#; exec /bin/bash -i --norc --noprofile -c 'bash \$HOME/fm-fix ; echo hello ; read line' #--norc --noprofile #; source \$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh if [ "$NO_REPAIRS_NEEDED" == "true" ]; then -echo GOT TO NO REPAIRS PLACE -read line - # we believe it's safe to run through the rest of this script. ############## @@ -215,9 +211,15 @@ read line fi # no error occurred. -else -echo SOME REPAIRS WERE NEEED -read line + if [ ! -z "$FEISTY_MEOW_SHOW_LAUNCH_GREETING" ]; then + echo + echo + echo "welcome to the feisty meow zone of peace, one of many refuges in the uncountably" + echo "infinite multiverses that are hypothetically possible." + echo + echo + unset FEISTY_MEOW_SHOW_LAUNCH_GREETING + fi fi # "$NO_REPAIRS_NEEDED" was == "true"