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 1170 invoked from network); 22 Sep 2021 00:52:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Sep 2021 00:52:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1632271963; b=ddss0+C05aH6/9jbB+MqTMUBYIvgPtW7JPmiaQAFPqM2J16gQ2PexTA1NG/KNSO/VhsR5iLOn/ FAXQS/rOv5c4WlkrpNcgCtcatu/yGNG2lxM+LVi7kZ/RBJS3iRXsJn5vqRLcIs43x7wVwCCv4I 6q7CnngFwLxAdfMs5I6SLZdvEDtEfxcb3K2vbvZK560XkigbeKxG+yV0FAoO06L4wPYZ9f9Sr4 1aOGZs0GSnCMQ7R6EEZOp/llcGkK5+JTRRYQOnpMNKEeC9eA11hZy4tBBbwdSDr5f1CJCib3Vt goVELRwjmSoGNAoYCp0wx1U/kiQ60d7h7q5faDy/0UveBw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout3-smtp.messagingengine.com) smtp.remote-ip=64.147.123.19; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm3 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=1632271963; bh=R+3Au7yUxsa/+FobSvkCp9/8BH1+OWknTGfl1I61C+o=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date:DKIM-Signature:DKIM-Signature: DKIM-Signature; b=YZ19JubMuHehej1hlUlIG36/x9hpJJC5u+f6T0RNbghM2EkUtyzBEwzicr5e82ckaiajcYvcQQ m6e2ZsDyg7Czng/lrQf4Fax08Ty6Suf9JJ8kIHWFuigISASvnp4GJ1wmeLTwgrT6CetvMLQHVg hFPAwC4F8ko0zbtSE+D6zMtdsWWuhu1Y7R+xMgcC0IFEl0Q1PaCMqrTQWK9ZSCzNIcj90N4ioZ xhOf+b0aBUUVxBVtTvuoK+IHIlSAe2JqcI5Kw8wWSOSPGiQO/AauhUPuWiA9VF/R5EDRdKeNMd HrNo1oHtZkEjyZ4JetocqvhbaZoDLZXs/+dR1PhATi7TpA==; 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:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=FuYZtP4EPcbfwHG2M2X2fV1gw1MRsKclTyDeazAIudQ=; b=YufjVRvtYgUBKtmzbb8Jel9VVQ MSHMue+mi17RZG8qIsK8lL7/vmZTW9e/9ZXFmD1RG5bz8F0OMOWGKPKl9iYDFg9bE1XDHPK+vRRgv NDxqDELUy54xcIkzYV/XwMQ9EXwF3RfzVRkzhNO+wqefuQ2NwkQlq/SmEJVvFgrMfjT4rbieFLadF fYlerh0mcZFM3mYVvGhHOQ0w2/qNLwZTdHszfZl4ivwqjDhZMlFb83KOkJ3OgHeR9+7h+W7nyJ+Gh t1o/NXpTuev8jkCiZh+QglBUxPEV9EOTZYCwyQCZUmXtv0wRuIZmN9ATmYKCDb1zRtGuw3dhvJdP1 E3rSnY5Q==; Received: from authenticated user by zero.zsh.org with local id 1mSqV6-000IwY-QN; Wed, 22 Sep 2021 00:52:40 +0000 Authentication-Results: zsh.org; iprev=pass (wout3-smtp.messagingengine.com) smtp.remote-ip=64.147.123.19; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm3 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:34673) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mSqUH-000IET-1B; Wed, 22 Sep 2021 00:51:50 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 6966A3201CED; Tue, 21 Sep 2021 20:51:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 21 Sep 2021 20:51:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= FuYZtP4EPcbfwHG2M2X2fV1gw1MRsKclTyDeazAIudQ=; b=M32Yl25dWjY8+4a9 zXi4DY4z+lEUP1lSX8G5jCLhdM26C2QVVIT4zSc+g/DcedQbHD25VyqoCYEl+/Mv 7dTcOY1eplYqwLPp3lNRpECT7OuksQuVrXmn3vOEoMgFXnyUl503I6LNoe+eCaIj kquN+8JErZ3bZ2O5yPgZkNxR1qvQLGJFkhELKIqIEzWMNTkLv011HhNIFvyDdbsC +gWinkTzu/RJX6dNUeHmuVMzr4b3xi4xE0FELkwA9dg1pA7So1J6Eu8LprKOy4WW 8Dc9b9Pr8ZsCGL9z1jBU+R/INy0eXEKpvYXl9m+FAbb3IzKScUZeeopIKy5ozCPZ bLZ/xA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=FuYZtP 4EPcbfwHG2M2X2fV1gw1MRsKclTyDeazAIudQ=; b=syGpOwLw6cxE7BW/uASzEq PTt7lpRr+FwLfwZjQRl+Z3vRuCSOQkOMd7MnNBT9a8pl/2TV0IqOgZMT4fYL2jPc bpbOGfik5ykYqbMoO9dJgPGDI9cQHiiqGCgY0Dt6hSPkD/rgAVpCmkjkXHvFnmmD TdstiAGC1wH1wCUqYw+1Jddjni5fYUNl9Lpx+XU1/aseSevBM+x9iJn5YmRThwR6 B/IbCRqnVLqbBhgtEOl5SaWUIxu0tGy9fzPpSKnuhcPHpdZbSjhT+WhEZ9DI/Ynz 51xHZRUocfcs/h6BeEQacS32/U3xPR2+XVggZh7w01oyUneBYRhlNU9NnhzsjWbg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeiiedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugfgfgesthektd dttderjeenucfhrhhomhepffgrnhhivghlucfuhhgrhhgrfhcuoegurdhssegurghnihgv lhdrshhhrghhrghfrdhnrghmvgeqnecuggftrfgrthhtvghrnhepvdfhjeetueefgfegve ejffdtveeukeehjeetkeevueevvedufeeltdeiudeihedtnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhh grfhdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 21 Sep 2021 20:51:45 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1000) id 4HDfrG4Tcpz4hD; Wed, 22 Sep 2021 00:51:42 +0000 (UTC) Date: Wed, 22 Sep 2021 00:51:42 +0000 From: Daniel Shahaf To: zsh-users@zsh.org Subject: Multi-element zstat Message-ID: <20210922005142.GA4135@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 27129 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: > tt(zstat )[ tt(-gnNolLtTrs) ] [ tt(-f) var(fd) ] \ > [ tt(-H) var(hash) ] [ tt(-A) var(array) ] \ > [ tt(-F) var(fmt) ] > [ tt(PLUS())var(element) ] [ var(file) ... ] ⋮ > A particular element may be selected by including its name > preceded by a `tt(PLUS())' in the option list; only one element is allowed. > The element may be shortened to any unique set of leading > characters. Otherwise, all elements will be shown for all files. How about extending the syntax to permit specifying multiple elements, in which case only those will be shown? E.g., «zstat +uid:gid:mode ./foo» or «zstat +uid +gid +mode ./foo»? The latter syntax would necessitate an incompatible change notice in NEWS/README (because «zstat +mode +foo» does stat("+foo"), exactly as the docstring promises). The output of the example invocation would be as follows (assuming -o is also passed for sanity): . mode 0100644 uid 1000 gid 1000 Looping over the one-element syntax isn't convenient when multiple file targets are passed. Ditto grepping the output. Just looking for consensus on the direction at this point; not planning to implement this immediately. Cheers, Daniel