[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there REPL for Bash?
From: |
Jean Louis |
Subject: |
Re: Is there REPL for Bash? |
Date: |
Sat, 28 Dec 2024 16:28:44 +0300 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
* Joel Reicher <joel.reicher@gmail.com> [2024-12-28 00:07]:
> 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.
I mean executing commands one by one. There is SQL mode, I can edit
file and then send the paragraphs to the SQL buffer and see the
result.
In shell-script-mode I can evaluate region, but I do not see where is
it evaluated.
My expectation was that it would work as SQL, and I didn't know how it
works. It's not that I do not want to use what is available, I was
asking how.
--
Jean Louis