From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19815 invoked from network); 1 Dec 2021 05:27:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Dec 2021 05:27:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1638336444; b=GCrxbixPqQrn/z6bhC/e58yVa5wrb+ojxTEQF+ptDY3FjGYMyTz5IN6xy+ECRRt/vHNAByvNDD I+tQ1Fdv1E6cyGToWmzZRkW6T+9vz6v7UtjtMUZmbtuImTsMRX3IyclbsWlKEJAn+ZR0WuVwHv r9a/yb+AHSGHK6pjy941lYr7MNWaUFiziLz6junnw2O1Seb4fyo+A4XdPn4DsIiYiNLHHmgaEN XKk4dBXpVqGkcy5wRarO7j35C4Od+duV1k+lKZfQGpEalhT/daIVC5UVvw0clQhdKhEZxVJ4vT KqlNJUFgVYN4WUwarWwllJLGjNOaMm9za3iPllwBWyQebA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1638336444; bh=lwcD2b+d57owi5L4OFDZtkCuHIfirpFhsU431EjwT9Y=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=Hq5FypXR3SfTBVQrQR5hzSw5PTz+aCsg0T8xmZpvgwccrqhPbDgPRZOJjqT1N6zWMr/I1zmbgY a1MzgBGPivC4wIoSBZe59YLNGzWFjq8s8mbyOG76p2TnyjYwxztIqghE2hsvM5P14mRJPeH8lU R6OtBlifjFTpMIz7Dt5Xv0/MTHqLiVCr/Xgokq/HAE6sRxeiZCJDbSD+PkkU9gstzxN0CVk+zh VvxNo0UHBr0loIh43nMvQQL2vR090TakY7fJ4P20t1igcaJNZcHdH2wac653xvzxcKlq/Rdhnc znUYaDHHVAlUVBxk3jmmuj71Ph6I3R6LiASohHyyFR5zxA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=dqu1BqxArY7motGHlbyNssvg7hJ9MfSX2IIofwKvBWk=; b=m9pin0nGKf02Ds4ACMPJxPZgFJ 4o9NVoW3Pg0mCyC+YDmO4wjeEsez5fsnU8t6zCaQQPT8ZxWo+Ksvid6Ztdv2nl5tiIAv+ITzBRE8w Kv3gX+WrxMvulmGxLVy2ZgCuNyNHiBfTHKSXnI048n3VOiSilQtEZvaFqanQ18xs7nFds9puw2zVi tLPmocuvL/QaF+MZ/tI04ic8r1ab4ECp4PtndREQ0sA25AYyytTauvif2wIUx9KsL3wGStM0HXa3L 7EmQlUZ0+hQxZFjR3tpSwEGybuJBwjk4xoMfbQT8KkgSpC5fTCxUcLJLAHCuh+HkSfoVV+NLHWHWn KOFDB0+A==; Received: from authenticated user by zero.zsh.org with local id 1msI9L-0007KF-J6; Wed, 01 Dec 2021 05:27:23 +0000 Authentication-Results: zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out5-smtp.messagingengine.com ([66.111.4.29]:38677) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1msI4x-0006W6-21; Wed, 01 Dec 2021 05:22:52 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 608E35C01B9; Wed, 1 Dec 2021 00:22:50 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 01 Dec 2021 00:22:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm2; bh=dqu1BqxArY7motGHlbyNssvg7hJ9MfSX2IIofwKv BWk=; b=bN8AiLVyFRqk2rXaGf2O/zYK7SuZdYfIj5x0oxq4WM5ea7JsKvG3EfH5 IHQ4h+5aIiw33oqp+u/xbZ9gZAWguoiE6jrzQqskbKxajGXkxIb3rjcBuXqShU2H GmU7hTWdBNb0qApfJ3zQq3Ooe2gW9Au7SWb9RA/x0vkmc5teRclD1bab7u7CKxjR Ru8m47+CkI+qPodRBNWmsUGge3SHKi8QV5OWQWNPf5uzyKRlGrT1Wzgv2W0MbtCq cYh+qhYpK23Er3fOj0E2hEDHJLeT7EtO/KuLY9yRcQAABl8d4Mjrw0L8CmR1Rsiw +iKdJrf4eZzxSoxajDGSwXxlUnjR1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=dqu1BqxArY7motGHlbyNssvg7hJ9MfSX2IIofwKvB Wk=; b=dodIv8eniVLIgkq3YVGGXNosryY5A0pLUoIysabDRl+C3ropz7PonTzpn 3C8m+ddgKiuVSYsZulfvj2+QfqIQ8EdaAAKlP7oQprEKP7HlYuvHQMa6LSX0aKYt R7IXkKKttDW51qSlIBZRmwVBMPPZdehYvyclipp00KVt1fpice6YueEefSaLP6P2 Fom2q0JyR6VX34RKt6qot/o3APLq23URGM+9w6Rb9a3YzXE1sUkhE7uFQmhkAUZJ bQwlgRilkGT5oU0XhXqKMRTCTfHeQjs49zGVtE4IpOFQPk8TwkQrBDeo13/Ub/+3 fn0Cm3scT8TjjFkp3HgMRRkfUzybQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddriedvgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggugfgjfgesthektddttderjeenucfhrhhomhepffgrnhhi vghlucfuhhgrhhgrfhcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgeqne cuggftrfgrthhtvghrnhepuddufeelleegffehveegveefgfehhfeuhfehffeljeduudeu hedtffegiedvgfehnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurdhssegurghnihgvlhdr shhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Dec 2021 00:22:50 -0500 (EST) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4J3nXm0MNqz55c; Wed, 1 Dec 2021 05:22:48 +0000 (UTC) Date: Wed, 1 Dec 2021 05:22:47 +0000 From: Daniel Shahaf To: Zach Riggle Cc: Zsh Users Subject: Re: Zsh Rosetta Stone / ExplainShell equivalent Message-ID: <20211201052247.GC26421@tarpaulin.shahaf.local2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 27407 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Zach Riggle wrote on Tue, Nov 23, 2021 at 20:58:52 -0600: > $ ls -la *(.Dmm-3) ⋮ > Is there any interest in something like ExplainShell or ShellCheck for > Zsh? I'm not sure what tools are best fit for parsing things like > complicated expressions. Truncating the command line after each character and doing headless completions (https://github.com/Valodim/zsh-capture-completion) might be a good start. For --options to builtins you could potentially make it a lot smarter by looking in the manual sources. Given «foo -x», jump to the [a-z]index(foo) line, then show either the «item(tt(-x))», if there is one, or the output of a sentence-wise grep for «tt(-x)» (taking the parentheses as literals). As to your question, you might've gotten better answers if you'd given a self-contained description (or at least examples) of the proposed functionality. Cheers, Daniel