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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16691 invoked from network); 27 Oct 2022 15:42:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Oct 2022 15:42:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666885345; b=S8QBuvrOlbOuoWLEhFs2eSaaULDBcu7Pb/0QSu9GyBgg7Ldv3W+0F7mzEhSJJLclUdiaNIApuf IToatSZ+dCo25t90/2cSxCkwLtdE7WBnRPh1P1qbY8OEP49P0gsio4sYpzGRGBEoVfaPH/d0tm oZjKhuMBQRBrp7lRIjnGa9AipROPDqK/jsaSRlP7t+hEeLPsobIHnKlR1PJNBv7NlGX8ktSOM2 GBZsFAFsPJOvDjoLD3jT+qv1LM3WSbXWYUda5QSKc3WHnKuql6syZJO4Tjd3jWnEM7tJAyy+xE NydPVc2fEFqi3f6by0hkMmcjvw4NPgiHFSbC1QIOVjIeBQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1666885345; bh=t9Xqkfw1tkZvAt/QnHUGfknnRER8iZZQtyKhTq+uWkY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:DKIM-Signature; b=TEL90uxa5o1Dmh6EqJIaFeV8H2LcaNT71pHHIeBrdYDPZVdRDPbTlG1F6A5HZPIuJg0u9RSLvT ZkrCdYJH4dJSVGxk4vuyguO5AuNFtaruseFSrBxdH21uFdzd2F3vILKQthDZKs7SUaczzC7OMa k1rk/TcERyy3FP4b3R+VySQ8DLZU82mf9mXrS2hKghuj8JYlImn8FS+rs25yNKPE4UwXOhlm29 5XFV+/B00X7YvvncyLt6YvH5u0uLbqe9EtV82w7TagFWLXMVVfE2gxH5B1XQJ57QvS8A6a0yQB OL4XnMzeOvZd8j/sgv8cu12EW4TaUV56DkYF+SvWqC3jKg==; 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:Subject:From:To:MIME-version:Date:Message-id: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=heNWl4kj/yMd6jceMc5Lf0llZIhrcOJwqkd2nnY+oMg=; b=No9MpfkgoIE+68a5cwB03NxQ7t CjaJLFDs07AHidvVvW2hCG54KACWZjYskgRFHJiX62qTRYG9JRJ4ax1AQ3TpEidJHDe4NvEyukI4P K3RVZTz0xwrvA36XoHs4ujo2ddm3TSdNpgQe+BZ6nPhLoPK26Q6u0yTu56q599sV+BKaX4XFc5Tl5 3KAmAHjPpC8Ule4oKDCJuAwuIHLGFV4i8cJkzR33heePKOzQRJ25pdvxv0wI6R1c7z4GiNqyTRBtf +UyIRmQ5FShwGUf4QUUv6SAjyOISjvMjNmo0RIgvMhRQyjWJzeuQR7mA++b5RFM7W1WY7qzwip2q0 CGH5t34Q==; Received: by zero.zsh.org with local id 1oo51U-0006xn-76; Thu, 27 Oct 2022 15:42:24 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:45394) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1oo50a-0006Fa-2V; Thu, 27 Oct 2022 15:41:29 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RKF00M08395P3G1@mta02.eastlink.ca> for zsh-users@zsh.org; Thu, 27 Oct 2022 12:41:25 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id o50XoQad9IeZVo50XoFr1w; Thu, 27 Oct 2022 12:41:25 -0300 X-Authority-Analysis: v=2.4 cv=Meqq+bzf c=1 sm=1 tr=0 ts=635aa6a5 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=wJzaca8kzFA5y0Q5Ll0A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtdeggdeltdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfvffhufgtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepveehudegteeiveevieeutefhffelheekueeghedthefgteejvefhgfekhfeigeffnecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: -100 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <22b55ee0-ab85-1352-87a7-32dde5c7678d@eastlink.ca> Date: Thu, 27 Oct 2022 08:41:25 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Content-language: en-US To: Zsh Users From: Ray Andrews Subject: glob executable vs. non executable Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28279 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: I'm trying to break all 'real' files -- ignoring those weird 'special' files that linux makes -- into two groups: executables, which I take to be x-scripts, binaries and symlinks, vs. everything else, basically unx-scripts and plain text files. $  eval "all_unx=( (#i)$1(N.^*) )" ... that seems to work for the later, the dot excludes symlinks but includes executables so: '^*' excludes those.  But what's the converse?  I'm wanting: $   eval "all_x=( (#i)$1(N*@) )" ... but it's a bad pattern. I can append two searches, one for '*' the other for '@' but I'm betting there's a clean way of doing it.  Basically real files that whence is interested in vs. real files she is not interested in.  Given that these glob qualifiers have a quite astonishing power, it seems puzzling that ... well, I shouldn't presume it isn't already there, but in my mind: $   eval "all_matches=( (#i)$1(NX )" ... anything whence finds, anything executable that is a file. Oh, and while I'm imagining new glob qualifiers, how about 'T': any text file, (un)executable script or just a cookie recipe but made of readable text.