logoalt Hacker News

wavemodeyesterday at 9:02 PM2 repliesview on HN

Well, you can "source" a script, so its effects persist in your current shell session. That's a feature of the script and your shell sharing the same language.


Replies

freehorseyesterday at 11:11 PM

Then it seems that what you want is running a repl of your chosen language rather than shell/"executable" scripts.

zbentleyyesterday at 10:19 PM

Sure, but “shell scripts” as an (admittedly imprecise) term usually imply separate executable files, not shell libraries/functions that are sourced.