From: Joel Reicher <joel.reicher@gmail.com>
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Is there REPL for Bash?
Date: Sat, 28 Dec 2024 08:05:29 +1100 [thread overview]
Message-ID: <861pxsbzvq.fsf@gmail.com> (raw)
In-Reply-To: <Z27ScISMK_5PQ_y3@lco2> (Jean Louis's message of "Fri, 27 Dec 2024 19:14:40 +0300")
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).
Regards,
- Joel
next prev parent reply other threads:[~2024-12-27 21:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-27 9:26 Is there REPL for Bash? Jean Louis
2024-12-27 14:17 ` Joel Reicher
2024-12-27 16:14 ` Jean Louis
2024-12-27 21:05 ` Joel Reicher [this message]
2024-12-28 7:19 ` tomas
2024-12-28 13:28 ` Jean Louis
2024-12-28 13:47 ` Jean Louis
2024-12-27 14:36 ` Eduardo Ochs
2024-12-27 16:16 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=861pxsbzvq.fsf@gmail.com \
--to=joel.reicher@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).