Y
Hacker News
new
|
ask
|
show
|
jobs
by
wavemode
17 days ago
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.
2 comments
zbentley
17 days ago
Sure, but “shell scripts” as an (admittedly imprecise) term usually imply separate executable files, not shell libraries/functions that are sourced.
link
freehorse
17 days ago
Then it seems that what you want is running a repl of your chosen language rather than shell/"executable" scripts.
link