On Sat, Dec 28, 2024 at 08:05:29AM +1100, Joel Reicher wrote: > Jean Louis writes: > > > * Joel Reicher [2024-12-27 17:18]: > > > Jean Louis writes: > > > > > > > I wonder if there is some REPL for Bash, so that I can write and > > > > evaluate shell script and see it evaluated in the side window? > > > > > > Bash itself is the REPL for bash. > > > > Sure, I was thinking I could edit a file in one buffer and easily > > evaluate it in a new shell related to that buffer and file, watching it > > on the side. 💡📝💻🔍 > > If you're editing foo.sh You could do M-x compile and enter something like > "bash foo.sh" for the compilation. That will achieve this effect as long as > the script does not require interactive input. > > But this is not what a REPL is, so I'm a bit confused why you say you want a > REPL (and also don't want to use the one that already exists). I think the OP has been using REPL in some extension of the original sense. Strictly speaking, the bash /is/ primarily a REPL (read-evaluate-print loop). All shells were born for that. Cheers -- t