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,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30537 invoked from network); 12 May 2021 16:15:46 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 May 2021 16:15:46 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1620836146; b=m0YjECvSQoEr+hHPHay4dLVKavPGHhfZVogK6X1EXDnRTlo1o2IS/P3gWTgKAIPG6D/EcWWLew kP/YFx6UV76wfLe6ut4Pmoh0xF0JK3enuN96uEzEIk4Lb7nKXIZMzzCE5pH8H8qXiEhv3OjXHE uYbiTrX4kaNzc/nsznEHlM8B2cELACB1uoSx8k0+192F+0iMJnXg9WOqQn+bphruF6ETeuMT1L sH6kCsWo3qX7wVcUkayGXSRMKk4A9SSS248CA5Rjhk/3e/aMcvhDzlA3TlSvNZSbQgIendF7wr nc8hnoKSenZwULcsZhuLJYB96aDbw8QNK2GYYpguIDTCGA==; 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-20200801; t=1620836146; bh=DT95Tb0fEh1nv+hSjRufVt9g6ufPyPb5JLRq7t45J9I=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=d3Fz7XjbZ/qWNzUkuF9SAoCXXRYkFDj0FKTr4tnN7vsd/LjWhEdfbr5mY3v3/OeLDpDkqK6yvZ MB4ke55tPyL3JHER379n/r7UNarQK5hJHsuHlPUwS7gkyVOiY78MGkXpvONjHk/HLE3HiR1riF SWxg+RzfDICpw0fPEKc0zWHIbE3p7MBOW/pdAFFVBVoSQNGFhyld/pNRtqzvHUDnQ4Ph9zVVtt A+/ZwWXZEoNqeBxr5y5jLyDRAzmocYe+hWtFi/3Fcj4GZ49v/YC6zxi+T+tqW0sCKefQN5jf2Y VN9NIBReMNzceSp6u8HqPDt3F2m0ke0lYX9ygTdqF2PpwA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-transfer-encoding: Content-type:In-reply-to:MIME-version:Date:Message-id:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=u1kh5IqSd2XcPPuFnJJVSgYusRiKhynEkdA/y6K26kc=; b=SqERzWIPYWCBuHJ5BYpRhNof7m v+DGkBhVAx6V5+CLvKN/jz1pZBlAAXyUyo+RSls2ZIwRmNqO5e5fzUkEjWegdDvin+HAIrHBVqbWb pYKkUcXIG/vblSadalZpLydel+lKQRGv9JYrHMCKj/ENKmzbjrDVNzS7EV+XTSyYVc9iIhgDgXqe4 ErmCnYc4DNjG3rpTLQ+YP5uTMLCXBW3TC31s986Y/VhmyTimp6AwsCSK8WJlMrRAGI8ur259VOnol 0Cb6yj5n8yGnUUXeP/fJjEISs/P+PELzcZYKnugKFls+NYYjGB6x38Pm5Aiwh5p4UvbdnnZhs4ZhH EJtGjN6Q==; Received: from authenticated user by zero.zsh.org with local id 1lgrWU-0006Zt-5a; Wed, 12 May 2021 16:15:46 +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]:55048) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1lgrVk-0005rg-Mm; Wed, 12 May 2021 16:15:01 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QT000KB70HH5P10@mta02.eastlink.ca> for zsh-users@zsh.org; Wed, 12 May 2021 13:14:58 -0300 (ADT) Received: from [192.168.0.3] ([24.207.90.194]) by Eastlink with ESMTP id grVil0jJuasvJgrVil3Vet; Wed, 12 May 2021 13:14:58 -0300 X-Authority-Analysis: v=2.4 cv=OoiKdwzt c=1 sm=1 tr=0 ts=609bff02 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=2S7xi3TW8c0pJ2mp:21 a=IkcTkHD0fZMA:10 a=tJ6EjDcKU34MQmEeirIA:9 a=QEXdDO2ut3YA:10 a=HC3luQfJ3mOFbcWf8SrX:22 a=nhBiZLy9dCYQrwyDy6gO:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehvddgleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepkedvueeuffefhfdvueeiteffvddtvdejgeeujeekieduheeiteeiheegtedvhfefnecukfhppedvgedrvddtjedrledtrdduleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdeltddrudelgedphhgvlhhopegludelvddrudeikedrtddrfegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: How to complete with _arguments() depending on an option and within a loop To: zsh-users@zsh.org References: <27484ec7-fc56-4164-b9b6-edfb62df0514@www.fastmail.com> From: Ray Andrews Message-id: <8d6db671-b3ac-4a35-4b71-c632b04cb52d@eastlink.ca> Date: Wed, 12 May 2021 09:14:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 26729 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 2021-05-12 8:50 a.m., Bart Schaefer wrote: > I think that a lot of the time the > benefit is given so much weight that the effort becomes unreasonable. And then there's the law of unintended consequences merged with Murphy's Law -- you end up with something very 'helpful' that you can't turn off in that situation where the 'help' isn't helpful *and* the complexity is such that the thing might break in ways that no one even anticipated.   Think avionics like that 'helpful' stall sensor in the 737 that crashed two airplanes.  Not too long ago you were kind enough to help me turn off every bit of helpfulness in completion -- just local files please -- I don't have the experience to remember all the 'help' that's available so please don't help, it's easier to just type a few more characters.  KISS.  Nice to have it there of course, but also nice to be able to turn it off.