From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel Reicher Newsgroups: gmane.emacs.help Subject: Re: Is there REPL for Bash? Date: Sat, 28 Dec 2024 08:05:29 +1100 Message-ID: <861pxsbzvq.fsf@gmail.com> References: <867c7lb46q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9253"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 27 22:06:22 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 1tRHXK-0002Hl-JZ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Dec 2024 22:06:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRHWo-0000aK-T1; Fri, 27 Dec 2024 16:05:54 -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 1tRHWb-0000Zj-NT for help-gnu-emacs@gnu.org; Fri, 27 Dec 2024 16:05:39 -0500 Original-Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRHWZ-000365-Um for help-gnu-emacs@gnu.org; Fri, 27 Dec 2024 16:05:37 -0500 Original-Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-21a1e6fd923so27036985ad.1 for ; Fri, 27 Dec 2024 13:05:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735333534; x=1735938334; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T+rZYYMnYM3TSxjYTcCB8TAnzc3YbzQwwvUBpqpzI7c=; b=L7sjbDpokeo2VigzOHgJz3thmQw1yhOuSj+8DO1AKr0y52+sjdYAaft94vD3LGntYR D6djArh6kDceMUGxepSupv86syWxTQvPtZA8x71D90yalOqQ395tUl9UFRvyfPy2oZAt F4ZPnRL4pKlajzig4NggN7NNCk+Hy6ZQZjcWHKb8TuD9rKr5UncDCGBrxE4bIYpAmxnA S3tcWr9QKw3FCGjtqdBvllqGv+RPu1A3bajxlj3YLUSXgIjCMLmgVgSsSCGrR+57r8k8 66INFMZ7ix+xhXzxPLJeMADqqo5eYrWnGbxLUPyQtQvBEwM2Qze6e09OUmJXzZefM2O2 HLlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735333534; x=1735938334; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=T+rZYYMnYM3TSxjYTcCB8TAnzc3YbzQwwvUBpqpzI7c=; b=iEITePORRoumkfezoRDlkngRMBVNhO9RiNoddmnhCaRPIrSoOg+uaOe1QeWhqivQsD Lx2HIRsPnC2k7czdVSANcegKbA+6mLkb5dWFqMsY5sBd3/Gb7xIXQ73h6c5ZM5PmIYxW 4wdE3pvSTnEhXR1SDUeAfgcxoYZiVAdxsu0lWQeT2XySK0ZjPZdjKDapvkha8zK9xoCf T9GvOP07qUETGHgL7scz0i8GQcC5ForqVAGHEDO/RvRu4yo84TP9ecPOB+yc8OFV+eRs 42TBYuytKvaN+yDrZhilM6/80q7DhyXCJuGRjaM0Ve0kzOcCI3ipYK8cKbF9xoTslGaW ySTA== X-Gm-Message-State: AOJu0YwtqW9RpPdveVbFPUiaq0gyGxjjYuinqhKBwh+GZDmiKkfdl9ky a2WIln0zhSMJv0GWrrrZV/fxGnns9+tjfdr1fT072eWBj+bZbhrKOTU4dA== X-Gm-Gg: ASbGncuNNj8V8CpMw0Iz0ZkATcTrR0OMMBW+p4mTHvRdRhQn+JDk9Zy1LLAq53+MhWP geAm4a7InfOpnrTuxwXl0mbhJjeNZHDFfJKNqIRDOC7uKVrA4HEFpqCUV/IRy2ic6KNZX8qkxHJ axNORwVWhjmSOxTGdm1oJ5Wkws5Te/+b7Ahlx2JryfoHO6EaC5+Op7zZyKAV0KnSJbduLX3bV7K 4g/1TnoVwpHuF27jPATHdH9U2w8bORiv/3V012lqfLOvWmnmFvOjvbULEwTHHRDk00ud6eflM+X z6Zcr4iWLeMxnU21KLYQHVWVsc3r8k0POc/rkgUVpZJI X-Google-Smtp-Source: AGHT+IGEPljuNr2Xpr9+QS1yQMGZgZVjHNjC48FvsM9g5Z/w999iH8Xv1ZE9FRylfH/VyzbPFBjc/Q== X-Received: by 2002:a05:6a00:6f0b:b0:725:ab14:6249 with SMTP id d2e1a72fcca58-72abdd20f0emr41671399b3a.2.1735333534140; Fri, 27 Dec 2024 13:05:34 -0800 (PST) Original-Received: from LAPTOP-ACR66VVN (139-218-25-158.sta.wbroadband.net.au. [139.218.25.158]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad816305sm14946741b3a.31.2024.12.27.13.05.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2024 13:05:33 -0800 (PST) In-Reply-To: (Jean Louis's message of "Fri, 27 Dec 2024 19:14:40 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=joel.reicher@gmail.com; helo=mail-pl1-x630.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:149033 Archived-At: 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=20 >>> and evaluate shell script and see it evaluated in the side=20 >>> window? >> >> Bash itself is the REPL for bash. > > Sure, I was thinking I could edit a file in one buffer and=20 > easily evaluate it in a new shell related to that buffer and=20 > file, watching it on the side. =F0=9F=92=A1=F0=9F=93=9D=F0=9F=92=BB=F0=9F= =94=8D If you're editing foo.sh You could do M-x compile and enter=20 something like "bash foo.sh" for the compilation. That will=20 achieve this effect as long as the script does not require=20 interactive input. But this is not what a REPL is, so I'm a bit confused why you say=20 you want a REPL (and also don't want to use the one that already=20 exists). Regards, - Joel