help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there REPL for Bash?


From: tomas
Subject: Re: Is there REPL for Bash?
Date: Sat, 28 Dec 2024 08:19:02 +0100

On Sat, Dec 28, 2024 at 08:05:29AM +1100, Joel Reicher wrote:
> Jean Louis <bugs@gnu.support> writes:
> 
> > * Joel Reicher <joel.reicher@gmail.com> [2024-12-27 17:18]:
> > > Jean Louis <bugs@gnu.support> 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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]