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 23281 invoked from network); 1 Dec 2021 19:39:30 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Dec 2021 19:39:30 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1638387570; b=jYk1X0R7PNW0OJ72I9E8kgIoZ3PFQPpivGUsIG6L4bzjZICUS/l7H8VpbvREmy3UECZJmzs/+d TVkfUOiXdpAQ3EOeLG9SbM0MfHuFtV9bOOqV+BN2OvuM6wxCGWzrLLyCFXyjaFsD7W/J3XW8AU t0S7OuUvByw4FIKJ4tArcuxkejm9Jftly//qDFQBXIa0l9WwTLUQhVC0EpAdyhDlrswQVnbEzD trtrFhGOo6YhIhOCaE/NFBWQ7HeC7KjvdLjBLrsTRvheOMYTLw3cbaklJ8xoZXkkGcTiP3vuhf ugHuEVlYVq0I7ZHFJ3XvFPcTW0WWmGYKueg8aIsbHZ5/0A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; 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=1638387570; bh=CLpP5hGEMXl8dnUo8+KaJ490fwfBRMMRn5tPtL3SMaI=; 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=gf35XF4nYhaDbujR9fNYc2Z5uK0CpDC3slYBeiphOJmd4/WjJJmWenc4AZu0LAtwx4GWpAB3d9 iv7LxGivcdVSMCRZcJG8dKOKftvUFb+eLsp+LzjsOGZz/tCrx7NCHMqENUlWQv+5PPHjdg0dpV R1AFbtfJ2+n15i7y0pGA0VLXNHYPa7bdjG+ebIUPsaoZEouY4fR4FejojAynItpYCQhgMsujXr /6n+9D2m9WM+CB3lEbvdkqqjg7LagFQgtjiTgNqE8jQcfISTE6oVhFFdq26kGx06ZhrjRRqsh+ vFQIwOF8wEgA9zH4DaAZzgZYZJq/qEcUsyoxRG4kyVxtqQ==; 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=4vBNrSIaYVYSQusm9ltUAU6L/0vzYKPNKF5lRkEYva0=; b=pF9NwCZWNZY+EoV1lwRqNBGJUV Q1jaQ6SxZd8xVKWM6cD7mMFbpV1Exw3y/QnHnhQOwSzc8wVAaFqvJ9Yj6SP+IZ8mbEW+soxi8qOCf pwcUVydmEjrSfNBfcEHHru3UUlnvq1W+e18RT4whQJ9r+fPgcijWPNPDsDSkSKjzPC/FUs41Azx1z hV61DWuf8n3IV42/4qoVHX20+rIs1MTV0KiAOWJZu/a6P0wUbD1zcI8PUdQStHYF2LxkPQ9mRqrFA gC4bxnrL+SjBJLxpBwXDMlyv+xsah5EAgS0bQfg6i/3rMtNmOPT2V7smDfyFMRevdvurvLOqqkizX ycY/zuzQ==; Received: from authenticated user by zero.zsh.org with local id 1msVRy-0004Px-0x; Wed, 01 Dec 2021 19:39:30 +0000 Authentication-Results: zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; 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 wout4-smtp.messagingengine.com ([64.147.123.20]:56909) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1msVR5-0002c8-9C; Wed, 01 Dec 2021 19:38:35 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 8DEC13201C79; Wed, 1 Dec 2021 14:38:33 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 01 Dec 2021 14:38:33 -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=4vBNrSIaYVYSQusm9ltUAU6L/0vzYKPNKF5lRkEY va0=; b=u38MaQxzoetH5ctZ9zsCkplyoo3NN7ptj6srxkfxh2mQOXI7DiPXg9yO dNUyuzLMNnsYJAbceZsIt+MdM8XZt5dvfcd6/eBmODQfSqVbYrR3VrG45C/IQTUB sTCSv+0WPEJpvtYeaNC+THCI03/YDllBX9tOXiKHi6mkjiHcU34H4F+69zjpaXZ0 noI3iYQPttlKW21uXKYpvC0G+tQM/81WLLwShEcqG4tI8p9ertp2uq1BrYBSPRfD 23plLFcEEH26zoO6W8bh7JjnxAHgPKLKVAA2uphT6N0p5N0opDlkBpT/kxqsxwK/ Zn9Ack67hZXsgohcivZmA8eNyBr7EQ== 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=4vBNrSIaYVYSQusm9ltUAU6L/0vzYKPNKF5lRkEYv a0=; b=bLJFQhi/zvOJidzqieRsPmy4/qmjDTIztYJXZduF4d7A4oI9uq/30NdrX SJw0dda87c1b1IURBjAEPwGag3cBkZZQWx9XLCgMyPOL+EqawebbK35LwQGFf/vG H71EohygkBNhEiVnh7y472BUH48sCgsJfPL5Y7+pRPwErQI2KHCAMkAsM8cJSBkt V32VT9ch5fXQ7hSo+nBZFyGZfoWmuqYNzLMqALB4RPBegF1tGlbJAQsjhNHihHCr Mqb9jWyYtwoOM3VsQWhsdICi7TQ0GS75ITr13RVwtag/1suz0TTzrI0EnGlNnqd7 l4jq6MGhwC3Q1l+tDkkrjRyhtd3Tw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrieefgdduvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtugfgjggfsehtkedttddtreejnecuhfhrohhmpeffrghn ihgvlhcuufhhrghhrghfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpeekkeekvddufefgvedugfdvueehleejkefhudevfeefiefh udejgeeuueevkeekhfenucffohhmrghinhepiiiirghpphgvrhdrtghordhukhdpiihshh drohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Dec 2021 14:38:32 -0500 (EST) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4J48X6197jz5HF; Wed, 1 Dec 2021 19:38:30 +0000 (UTC) Date: Wed, 1 Dec 2021 19:38:30 +0000 From: Daniel Shahaf To: david rayner Cc: zsh-users@zsh.org Subject: Re: Zsh Rosetta Stone / ExplainShell equivalent Message-ID: <20211201193830.GB17486@tarpaulin.shahaf.local2> References: <56dba431-44a9-4e58-db70-8eb5931000ca@rayninfo.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56dba431-44a9-4e58-db70-8eb5931000ca@rayninfo.co.uk> User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 27412 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: david rayner wrote on Wed, Dec 01, 2021 at 18:52:01 +0000: > > On 01/12/2021 18:40, Bart Schaefer wrote: > > On Wed, Dec 1, 2021 at 9:27 AM zzapper wrote: > > > Zach I recovered the following page from the old zsh Wiki website from the wayback machine > > > > > > http://zzapper.co.uk/charindex.html Thanks for digging that up. When I look up the definition of ${(X)} or ${foo[(X)]} or ${foo:X} or %X or *(X) in the manual, I don't always remember whether the string to grep for is a bare "X" (at the start of the line with whitespace after it), or X with its "sigil", i.e., "(X)"/":X"/"%x". The format of that page solves this problem. > > If anyone would like to update this I expect we could get it onto the > > zsh.org website. Yeah. We could add it to the FAQ sources, so it'll be updated in lockstep with everything else in zsh.git and be updated automatically upon new releases — but see below. > > There are some obvious omissions even in the first few entries, for > > example $'...' quoting which has been around for years. > > > Good idea If someone is able to do this I think they can just wget > > http://zzapper.co.uk/charindex.html > > > The original page had some pretty complex css which I attempted to simplify. What's the copyright license of the contents of the original page? Cheers, Daniel