Conversation
Notices
-
clacke: inhibited exhausted pixie dream boy πΈπͺππ°ππ (clacke@libranet.de)'s status on Tuesday, 14-May-2019 01:21:39 EDT clacke: inhibited exhausted pixie dream boy πΈπͺππ°ππ
"is there a REPL for bash?" -
Dave Morriss (perloid@mastodon.sdf.org)'s status on Tuesday, 14-May-2019 05:36:53 EDT Dave Morriss
@clacke Intriguing question (though I assume not yours?).
Is repl.it worth looking at?
I tend to use 'set +x' and 'set -x'
or just print stuff to debug scripts-
clacke: inhibited exhausted pixie dream boy πΈπͺππ°ππ (clacke@libranet.de)'s status on Tuesday, 14-May-2019 10:01:51 EDT clacke: inhibited exhausted pixie dream boy πΈπͺππ°ππ
@Dave Morriss @Charles Stanhope I was looking for something else and this showed up on StackOverflow.
One of the answers pointed out that the question is not quite as funny as it sounds: the interactive bash is actually just a RE_L, it doesn't print!
There isn't anything to print, really. Functions and commands only return return codes. But if you put the return code in your PS1 then bash becomes a REPL. π-
clacke: inhibited exhausted pixie dream boy πΈπͺππ°ππ (clacke@libranet.de)'s status on Tuesday, 14-May-2019 10:03:08 EDT clacke: inhibited exhausted pixie dream boy πΈπͺππ°ππ
@Charles Stanhope @Dave Morriss repl.it was one of the serious suggestions. I'm happy to note that no answers or comments were snarky. The implied snark in my OP here makes me the worst offender, but I think I wasn't too bad, and I didn't do it in their face at least. π
-
-
-