From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "KARR, DAVID" Newsgroups: gmane.emacs.help Subject: RE: How to get eshell to do what I used to do with shell Date: Sat, 10 Aug 2024 21:06:03 +0000 Message-ID: References: <86cymgytwm.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7786"; mail-complaints-to="usenet@ciao.gmane.io" To: James Thomas , "Help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 10 23:06:46 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 1sctIU-0001sF-2R for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Aug 2024 23:06:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sctI2-0004PZ-Hp; Sat, 10 Aug 2024 17:06:18 -0400 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 1sctI1-0004PG-6C for Help-gnu-emacs@gnu.org; Sat, 10 Aug 2024 17:06:17 -0400 Original-Received: from mx0b-00191d01.pphosted.com ([67.231.157.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sctHz-0001ea-31 for Help-gnu-emacs@gnu.org; Sat, 10 Aug 2024 17:06:16 -0400 Original-Received: from pps.filterd (m0288869.ppops.net [127.0.0.1]) by m0288869.ppops.net-00191d01. (8.18.1.2/8.18.1.2) with ESMTP id 47AFDTOA028312; Sat, 10 Aug 2024 17:06:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.com; h=from :to:subject:date:message-id:references:in-reply-to:content-type :mime-version; s=PP1; bh=HNUIaKNx9ZDX1foYB34lXCXnNmLeKQpjVpbWq42 b7wY=; b=OAk6bVq19tny6oz2vrZb7dvCf98FP1lOmWzEV4rJaZbu9c5cA8dRJvn Ee7P/zjHB/rpnlY/IXXL8gFM9pBxypwDdvti0SboAmJ3IiNQJWhfjkhhXJJw2+Hr cvSCK/y7RmU6cH78M8Xm7N1w0BETKS0Mrd4B5KxDKdjLM4duyiYdxGMDs5AKo+cY sSIeq0AOQn/kc8rv1GP3xPbWC6kCKD9H3PNXelgmtBmb/IA3LPc/BXPgc/HejaWv ByuXHFXWZeNmyulH+CO+hnZoL976R6jtSTzhi3yhvrhkiNepCY/jg/TEPTbYy4sa ePC7gANPaS5G+J4w5slvOpOvmd5MCiQ== Original-Received: from flpd657.enaf.ffdc.sbc.com (sbcsmtp9.sbc.com [144.160.128.153]) by m0288869.ppops.net-00191d01. (PPS) with ESMTPS id 40x479t43d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 10 Aug 2024 17:06:12 -0400 (EDT) Original-Received: from enaf.ffdc.sbc.com (localhost [127.0.0.1]) by flpd657.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id 47AL6A8O092813; Sat, 10 Aug 2024 14:06:11 -0700 Original-Received: from zlp25947.vci.att.com (zlp25947.vci.att.com [135.213.92.137]) by flpd657.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id 47AL676M092751 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 10 Aug 2024 14:06:07 -0700 Original-Received: from zlp25947.vci.att.com (zlp25947.vci.att.com [127.0.0.1]) by zlp25947.vci.att.com (Service) with ESMTP id 2427C40F6363; Sat, 10 Aug 2024 21:06:07 +0000 (GMT) Original-Received: from CAFRFD1MSGEX5EC.ITServices.sbc.com (unknown [135.147.202.232]) by zlp25947.vci.att.com (Service) with ESMTP id D253E40F6361; Sat, 10 Aug 2024 21:06:06 +0000 (GMT) Original-Received: from CAFRFD1MSGEX5EC.ITServices.sbc.com (135.147.202.232) by CAFRFD1MSGEX5EC.ITServices.sbc.com (135.147.202.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 10 Aug 2024 14:06:06 -0700 Original-Received: from CAFRFD1MSGETA07.tmg.ad.att.com (144.160.143.86) by CAFRFD1MSGEX5EC.ITServices.sbc.com (135.147.202.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11 via Frontend Transport; Sat, 10 Aug 2024 14:06:06 -0700 Original-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by edgeFF.exch.att.com (144.160.143.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 10 Aug 2024 14:06:05 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sdmrEQioG2LWADA5FpRxRAVrk2Q5AVoFczB6QfNuQf+ZDZpm6AXrvlTvHbqBlQi1jE5Y5ihLSfN+G3XYiUCM18RplnVp/r8j+7k0cgt9qz+thqyFdRBLeexBn8oIVe+dwteM8Tzmy+HUolzBzN521dwUu0n8K/Z4wSqQhqwWvjuEAV9ebtgcPERB8cB4CzhWF0prZOjIjRz7LAD/r9I8x8ut7ZKwqAN+KEaKmFU6IGIlgKwLO/H2ikOt/RBJWYD42z8fdnjqFm0PtrFT9Ms9xdXMSfp3PaRHiy+dh5HFpNPRarrOdFE5v3HoH4jK5pFdgP5sgCsowv6yBvxSAP/C1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bgWeLqrORvXjAfBhxpXqwIlOe4kSDGG3uhYnIP7xwEA=; b=QG8Wm7D4gsZHKaDj6Gvr9dyqGf/v+7vzLTXBtAaEZzjParjdWPjkyxEABMbcJJGOuXSV1tg69zABJIlZd2czESIdqwG/rMNWAmPuZmEVIWrcQobniZ808tcsLlrOKUSvSA7zq7rZyyzp8P8Z5s1YIrgw5jAxank0Do0hcNAHzNqeo4nU1wJ69APXh0X76Z2MsyQeZUGF5ROxuYqHys8JBc+x58tpF9OWT8oYaIynzHBxEAoaqmhpDIHd3WWTaatrXIuho3Bcp3y0ee5ZzvQzxsM8tdN4mfB1CA6pdTyMFkG1MgUP/KvIs3C2BZZCQboomfpWfhDcnq2tU/zh+89tjg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=att.com; dmarc=pass action=none header.from=att.com; dkim=pass header.d=att.com; arc=none Original-Received: from DM3PR02MB10256.namprd02.prod.outlook.com (2603:10b6:0:4b::5) by SA0PR02MB7241.namprd02.prod.outlook.com (2603:10b6:806:ef::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.14; Sat, 10 Aug 2024 21:06:04 +0000 Original-Received: from DM3PR02MB10256.namprd02.prod.outlook.com ([fe80::1f1d:c970:cbe7:1d04]) by DM3PR02MB10256.namprd02.prod.outlook.com ([fe80::1f1d:c970:cbe7:1d04%5]) with mapi id 15.20.7849.018; Sat, 10 Aug 2024 21:06:03 +0000 Thread-Topic: How to get eshell to do what I used to do with shell Thread-Index: AdrrRMUYfdN0FRoxQy+4vjS/jDCrQQAI93LBAAAOF1A= In-Reply-To: <86cymgytwm.fsf@gmx.net> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM3PR02MB10256:EE_|SA0PR02MB7241:EE_ x-ms-office365-filtering-correlation-id: 37c6acea-7d22-43c8-49b3-08dcb9803e59 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?PJEuQiMCtFmdrthgSBmonfz2grDuWtbJAjJ1mYHXPSDOcIPEp4hAiZSC5Z1V?= =?us-ascii?Q?PLPAjCyys2+/p9ST3175tC6tsESVh/6tLyIKDeId3LlICecbKqQL7uzu8UwB?= =?us-ascii?Q?o2e7+UatIent+WFsAFXXRZyBuQCP51Bge21WeQ5KlXy7NGDHYxnN+HB14Olv?= =?us-ascii?Q?a9SP7s7qwipK/u9hD4y1G6B5QPrx1tVUF4IV1PcqyTTeq9oO49/zwdq1zG3K?= =?us-ascii?Q?pIg7DeP/tEXq5JDhAuKIPXDgIzEx5GJBjj9fGl8m+zhSOFVzjw8/GBaJrmIm?= =?us-ascii?Q?mVXq65jMcrl6/zXgHDKPpWCB+6DvkhBog/jRjD9Y0NWe92f+K86l7ozyriV2?= =?us-ascii?Q?X4v1i57+vQTBLB4SvAHQG0ugf3T+Rfe9wBAx0zkt5t+f/y0jsUnVf56qVr2O?= =?us-ascii?Q?qcyfnxPKmEhUi+8niOAd1nm9OwMEct+JmWWqIDPikVDLOHU+yVaOQD48Q0F1?= =?us-ascii?Q?JnWUk1EUSVaUf5AszMqyWurSQgSqUSlMPMP/+xb76E0HpleeLmmlPsQ1Y6O5?= =?us-ascii?Q?uIeO4znAOuJxpHYLMdCj/5A+SXYdpiGyAW/ra68LUWj2QrErB3zSCiyWB08E?= =?us-ascii?Q?l0tz9I2CeF14P5IGxU01f0VKpVVczgdS9uLk7LyLaejNqVuTW28+ALIzuJY/?= =?us-ascii?Q?Q9H8U x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM3PR02MB10256.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ggyVSrpH6i4OqAX+65R2/jgBhCh26UJUfhKkVij2FLGgTHjApj16cSF8x9G3?= =?us-ascii?Q?s3DBpEhAVLqu3rsPE5w4p5FUEYOQ9rA3LOFFLpfcblLwnRIza4LIAy3M1hrd?= =?us-ascii?Q?g2EVsfg+T5ai1VfOiC8HONZWL4TXipFvUbb8LyTMo76Pf5qh6kRJrSIYY1RT?= =?us-ascii?Q?OgmZNnj2kHMZuT9o6H2pVFH7G1z9p7VzboPa7ukWiYUZiv8oBvZ2Ohu6IyTE?= =?us-ascii?Q?GOZtO6R1iJmsvDQrsiKcBS9Po7zQHOm2nT6NJkLP7o7voxP8jt0n67a8UEDS?= =?us-ascii?Q?Wm5qlNz5KtqOT+FCn/aefoGs45oLy5CK8YSNgMQuJsFtGLhl6hcPEpUOdP07?= =?us-ascii?Q?uDsuVQMkr6YTQSj6meA6FMxrGPESMuOYCsybjExu/YVOCZq3/3EioGyuv5kI?= =?us-ascii?Q?PDJELhE58e9tPr+8mBg9+wF8qDMfk0pfVGL+9FqEiuBIjY9SxjfmJ3OE24bO?= =?us-ascii?Q?GI23BABVnp4T44d5fFRH1u6pIUm384KCNQvBcRH3KsK07pkIoAcrfTp5mFUs?= =?us-ascii?Q?eIcotPn7KJTiO6biUNyLgXvxcRWsoAVbgK8Q9/qRPAl1143rAdvKA2lEfBvR?= =?us-ascii?Q?72FMihE2toino7nH6MpkyAPWAn7+ga2Eo4/CzJq17/2/YtcUDGiNWWrj+tDJ?= =?us-ascii?Q?m9 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM3PR02MB10256.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37c6acea-7d22-43c8-49b3-08dcb9803e59 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2024 21:06:03.2538 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e741d71c-c6b6-47b0-803c-0f3b32b07556 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4EH+c1QYSiNS5zyaSOvuLi3uzFuERMEsGGvCg24KWmoLSx8jIrtA9w8FurY2bHMT X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR02MB7241 X-TM-SNTS-SMTP: 14395A8B15F012C2BAE8C8CC7083D307432B1309BA4233B104286D7388FFAC372 X-Proofpoint-ORIG-GUID: IAZB8wlTbk-f378c-RVA9CktaPGmUo0Y X-Proofpoint-GUID: IAZB8wlTbk-f378c-RVA9CktaPGmUo0Y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-10_17,2024-08-07_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 mlxscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 mlxlogscore=999 malwarescore=0 phishscore=0 spamscore=0 suspectscore=0 clxscore=1011 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408100160 Received-SPF: pass client-ip=67.231.157.136; envelope-from=dk068x@att.com; helo=mx0b-00191d01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:147593 Archived-At: I don't understand that. I will be performing different tasks in different = directories, and the output for tasks in one directory need to kept separat= e from the output for tasks in other directories. By "different remotes", do you mean different hosts? I wouldn't be doing th= at at all. From: help-gnu-emacs-bounces+dk068x=3Datt.com@gnu.org On Behalf Of James Thomas Sent: Saturday, August 10, 2024 2:01 PM To: Help-gnu-emacs@gnu.org Subject: Re: How to get eshell to do what I used to do with shell KARR, DAVID wrote: > My old wrapper had these features: > * In a non-shell = buffer, execing the main func would either create the > first shell buffer,= or go to the first one in the chain, perhaps > called the 0th. > * In a sh= ell KARR, DAVID wrote: > My old wrapper had these features: > * In a non-shell buffer, execing the main func would either create the > first shell buffer, or go to the first one in the chain, perhaps > called the 0th. > * In a shell buffer, execing the main func would create a new shell in > the chain, using the current directory > * In a shell buffer, execing the "goto-next-shell" func would move to > the next buffer in the chain, or back to 0 if at the end > * In a shell buffer, execing the "find-shell-with-dir" func would take > a string argument and find the next buffer in the chain where the pwd > has that string as a substring > > I think all of these are doable They should be, but lemme just say that I think a better way to use eshell is to have a single buffer: the ability to transparently 'cd' to different remotes and selectively open async output buffers (at least for me) makes keeping multiple buffers redundant and is more convenient: if the user is a single person, all the commands are in a particular sequence, after all. Regards, James