From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Is there REPL for Bash? Date: Sat, 28 Dec 2024 08:19:02 +0100 Message-ID: References: <867c7lb46q.fsf@gmail.com> <861pxsbzvq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wROu2h9FnaOn0KRD" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9782"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 28 08:19:39 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tRR6o-0002QH-Ut for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 28 Dec 2024 08:19:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRR6M-0003nK-TS; Sat, 28 Dec 2024 02:19:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRR6L-0003mp-9O for help-gnu-emacs@gnu.org; Sat, 28 Dec 2024 02:19:09 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRR6J-0003TF-Cc for help-gnu-emacs@gnu.org; Sat, 28 Dec 2024 02:19:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ioSe506z9NpBg8lLVRaBh4qyayInSpBTGkznnkDQtuc=; b=pUkCZRbSTg6hyW9+ueAofoB3ow fEFxz3t9cEsPAP/o5sS6Inj7p+cBFnScwJ/YErjlKcH4+0tvfIxu/g6sVfmcssjkeYI+Q/ey1SZ02 /Ug0MlCRNqdaAlhbDqAqbrCknbobu2mKByjzDFJbLJcGbRaDg8VBN5l2+b06VL1WILQe30vYoYAzb fqxmgWHxm9lt6HEWtk5n1KJj269PGWgq+Q0F9S51CbBPG/tpLm0jx/M72F7jsmcrB092tm+Itmiyj +nwIJ+d2nalholS8BLnUmQe55QvOM7V/KAzmGc+oKtlsfGSfjJtK0uC5zALc679DqpQ6wI1PxJ9lb i+IzoxKw==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1tRR6E-0007ha-J6 for help-gnu-emacs@gnu.org; Sat, 28 Dec 2024 08:19:02 +0100 Content-Disposition: inline In-Reply-To: <861pxsbzvq.fsf@gmail.com> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:149042 Archived-At: --wROu2h9FnaOn0KRD Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 28, 2024 at 08:05:29AM +1100, Joel Reicher wrote: > Jean Louis writes: >=20 > > * Joel Reicher [2024-12-27 17:18]: > > > Jean Louis writes: > > >=20 > > > > 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? > > >=20 > > > Bash itself is the REPL for bash. > >=20 > > 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. =F0=9F=92=A1=F0=9F=93=9D=F0=9F=92=BB=F0=9F=94=8D >=20 > 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. >=20 > But this is not what a REPL is, so I'm a bit confused why you say you wan= t 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 --=20 t --wROu2h9FnaOn0KRD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZ2+mXwAKCRAFyCz1etHa RtnmAJ9HXvwWLfpiNMHo6zuIatAEffF5iQCeLUyhwVwvTzKT1sD2ZS5H5gQcRjA= =EOUG -----END PGP SIGNATURE----- --wROu2h9FnaOn0KRD--