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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2345 invoked from network); 18 Aug 2021 17:25:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Aug 2021 17:25:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1629307503; b=dIgJlndFavW58u9NoXSFpFYlL1mYU1V25STCh7f0HjYaHvxqZzPX/vRfumR1t0cpibMTS8fcAt U7U0xZ+XPFPF21TFk8WkWZfFAFt4xXIobfl2n5tqKjP00IpLg09D/Y1PZYWwNojPCnE9Ryvx7Q Vax1/UUmNvnNHdfYMcoslotBDxNb+dVvudZUHNJDTrQkaHAbatTzwjgrC7dmePhWk44UzF6r3I euFvd4MZnBm+tHr+MmGL36UC+tXCkZy+V6DztDQ64ro6owd2dTyrcOQhmCXtMGo65qXwmMy1y/ BLR7pVjchCF9chlzhc04mHnhMLBObAteB7uAZS4LiohBxQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f174.google.com) smtp.remote-ip=209.85.219.174; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1629307503; bh=9lRcYqfegrD2aowgZ7fnuzBljNSjyd15YYvQBqnc6ic=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=XPFLA59prj9zqgDz+HaKwQk/00y86k2Yi3jjO94h5J82836cBQ6W7/GWnlQDrqwYQklE4DV1bi KfVUZnPFGgAOiLHkGx69QBQoOA8sZBH04+ygL7jfGEXEZ+Yt0O8y7JEkjyDTjVTOqFERWfQjHn tq6J3260ljOWuLzh8hVmgh7GO+Qrc2bjWVdPOeI+hqoWP9cWaFBJ2L0P1YFJSB9xTcQR13c7l4 I+NRdRnFH2BcpOMR7Dr/ZKaqo1stcKtSYqUOSq/VSQegYUAgxVUquCbBFPQ6fM8SrXQ3yuJt/8 Ky9xn9WiRYb0rWEywl0nwWg7erOCLjAiGg2slftep6UNJw==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=370gOeJyz+k5YG1ylnOq/TT206T7voINGWR/rgUwN2g=; b=QSYpvw2TIygfZqlBVSIcaJtBj1 AWnf0gnRZRiOE2OKPmYB3iMIbBZmMJXbJytoJppgwOIp5Gu+smJbuaVV9nH2lbObR0CEpIr3zsaIo /0G8FS2Dgv5uiRmixHSpJHoETM7m4AL4dcgJ6R9FiHWt9OSJlBNOE4elbPEbtPkarm0+o7gMFZQsa xkh6ZiT3hMW85D0rc25EGGydJjCbx24GaOTp0YIjAZ8/W2Ihj+pg3fd+8OQNOGWzs00xcKBP1cZTU SDA38W79/8a+85q1dsNH8toYsIRLHH7JUlVI6L0YDx/oE6iP820jjqdOCEFzFvv1VgnDkxqmYjjCq JEFZkB5w==; Received: from authenticated user by zero.zsh.org with local id 1mGPJH-000Fvn-8O; Wed, 18 Aug 2021 17:25:03 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f174.google.com) smtp.remote-ip=209.85.219.174; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f174.google.com ([209.85.219.174]:47038) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mGPIC-000FC1-RV; Wed, 18 Aug 2021 17:23:58 +0000 Received: by mail-yb1-f174.google.com with SMTP id k65so6611976yba.13 for ; Wed, 18 Aug 2021 10:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=370gOeJyz+k5YG1ylnOq/TT206T7voINGWR/rgUwN2g=; b=VZUOYnp5C5MzwidB6bKt0o72DIzrw968Hel5/VC5oqhwQjocRRfbYwZww+kEBd8LWR eKkiJAkY0qiyTGKF+BJvb0eC0JE+aPpBF+2dJ16WTRJllB5bcSm9nwii/NMT7isUVq9d tQC+61YTD/eIfDEzScGVrU60s/0Dj64nPjh6p40Dco8ydZH2uRXJigPAVF7boQIZkyWg vyqGbIi/dPjLbo4PiD8LqH4BsSXBEcZFxZcL3JAJ2q41Kx6gnxOzuHaLTy28o8j5tKUw 8WXonFCehpXkcX2/HBSnm217jSpKkAqXKvlaFK4Jd4pjgSYNvxQpP23vtmXx8vWYFHav rXRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=370gOeJyz+k5YG1ylnOq/TT206T7voINGWR/rgUwN2g=; b=ZEV49SWzxjVWDCVEU0x8pEJErKyGHoPJqd/ww1g4Mo029+SU2aHjTyPWUQMQK4MOGA YImz7JyVaLTye9ejBxR98K0EBOwYM4IP92IG/1f2l0G0j0FsN6RF7rbAQjsvH3pitdeW 7VHzuCGNOcAa+4pw0H370jKCjL9PcHrxAh2K1fDlhCsVKlSTatwVVTa8GGruxE0jvn+z B/dhezVi1q9BxTcQUlYJg11bTWd7A28Icn3zqVhk93r31Cx9NyH2xgRJwTgWn5gBZSJQ fYdXs4FZPVMYLC05KompynV7AfoTz+xw/MD/f0qJjK3XYP7mjRjd7IQO1ogdNnRHDjy3 j/mw== X-Gm-Message-State: AOAM532QesOqmciHcLFAoF6ca/X+9fWat7zxVFDqxyBS67tmlT18VzH5 lhNOISCjPQZzuhcLoTAwPqoWZkUha43z0+RHf+XRxw== X-Google-Smtp-Source: ABdhPJw1BFbLLad49WRTeUVHTzRTk4mEY2uUfHfj1782ARtsezR1fenWRUF0eQ4kILjNx+wCF+/wb+pMaYPEgThte6c= X-Received: by 2002:a25:31c5:: with SMTP id x188mr12678226ybx.291.1629307435665; Wed, 18 Aug 2021 10:23:55 -0700 (PDT) MIME-Version: 1.0 References: <8e20a9ea-d705-4a1f-97ca-ff6b809f6a92@www.fastmail.com> <31f78c80-2cc8-db5f-659f-d9d27002781c@eastlink.ca> In-Reply-To: <31f78c80-2cc8-db5f-659f-d9d27002781c@eastlink.ca> From: Bart Schaefer Date: Wed, 18 Aug 2021 10:23:44 -0700 Message-ID: Subject: Re: Globbing symlinks-to-${glob_qualifier} To: Ray Andrews Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26953 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: On Wed, Aug 18, 2021 at 9:48 AM Ray Andrews wrote: > > This is a half baked musing as much as a question, but would it not be > inevitable that some of these glob options Note that the ones mentioning "global" are not glob options, and "globcomplete" is a completion option rather than a globbing one. > ... must contradict each other? Options are always on/off, but wouldn't > the logic of some of these settings be more of a 'radio button' sort of > thing Yes, there are a few cases where turning on option X causes option Y to be ignored. I think those cases are all properly documented, but extra eyeballs on that sort of thing are never amiss. There are two reasons we don't want to resort to having "radio button" option behavior: (1) The internals use 0/1 bitflags, and using multi-values would be both a lot of code changes and use more memory. (2) If you need to locally change X, it's not necessary to save/restore any other state of Y that might interact with it. A prime example of this is "noglob" which obviously disavows a whole fleet of other options, many of which are not otherwise mutually exclusive.