From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id bfa98790 for ; Fri, 16 Aug 2019 01:55:25 +0000 (UTC) Received: (qmail 18523 invoked by alias); 16 Aug 2019 01:55:18 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24147 Received: (qmail 2640 invoked by uid 1010); 16 Aug 2019 01:55:18 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f50.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25538. spamassassin: 3.4.2. Clear:RC:0(209.85.166.50):SA:0(-1.9/5.0):. Processed in 2.216886 secs); 16 Aug 2019 01:55:18 -0000 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.50 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gwFSW7DQDt0mYaEf5gEFrTzmFskoIwrcyTvc93+aZag=; b=2Sd5zxvgkXV88ZedsBytjmoljrQh3v0seF6JyPDDGUdTAjYi8gG4JaydU/1PP26ZbY 6fce7x5ws1x0wOEPB48Wi+Wy0XRlo5ywRA3Ek7whl7CQ4RC3mlG0itBm4zcxX0qYqKL0 PfUtGb8PDh4qQz4So/ERHhWhXGkfoEXD8kfZaPswc1Kl7yComciy25byUTySlXLfp7Sd SvYN2bJpgRhlTxrF3rPYFX01QD2t26H5cafzNfIhDx9b30riyAvkVLtFZqfaPxqggrIO 5YGdNImkgeCQw5IxCoxFjGw1ayAVQMsZaAerCmW1mZmb2kHgYsyJmbkAKmwRKdPrF1YN t7JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gwFSW7DQDt0mYaEf5gEFrTzmFskoIwrcyTvc93+aZag=; b=m8owhcyPpegWZfSATsJ/LyUux00ktT4VKsXRZAeDAaTtBhDJ2cA+iGTtMUzrxcYgbm 24z+MRk4CPYLHETiYpleMZU6I3d00yft4/5bDJqYY4dBVqxnySoKEW5Q62eRB1Qt9Z/4 lSfGEI5xJBsXQVc4AGnOV/xK+QHti18KYDivF1FTia5CUGklq2/32ETCZYVraNnlJ/68 Ql/EV93UwJJq0rvdcmuYBqX/u3LoJ3Xbg5GXW2j+AvrzFi9KIgmycIQod53VYAAszQzS BNOyu8uM42BUKtFcNF45YL78T469RGrNaV6m9FLsgPnHejdBfHzRc2uP/02roaP9xPXY 6BOA== X-Gm-Message-State: APjAAAV8aKO3fMhg7qY04fiqRdITgx0ul0qHjNOxnlCTcslmKRLyupui 5JzWBVdDI0wbAUNLyCkh7OZHNA== X-Google-Smtp-Source: APXvYqyfhNoOQCG9NI0tB1sPSykR+l93a5dhJrpn0BE1ubRVEk8FpqfIy5otc1GV9HE+vOafKItD2w== X-Received: by 2002:a6b:b549:: with SMTP id e70mr8392736iof.95.1565920483337; Thu, 15 Aug 2019 18:54:43 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: help for writing GNU stow completion From: dana In-Reply-To: Date: Thu, 15 Aug 2019 20:54:41 -0500 Cc: =?utf-8?B?QXVyw6lsaWVu?= , zsh-users Content-Transfer-Encoding: quoted-printable Message-Id: <2EC532C0-D2E5-4F43-9EA5-52DBCDCCC18F@dana.is> References: <1e5195bb-3126-8d0c-8a6a-1f5a5fd2a6c0@yahoo.fr> To: Daniel Shahaf X-Mailer: Apple Mail (2.3445.104.11) On 15 Aug 2019, at 20:28, Daniel Shahaf wrote: > This would run the code being typed on the command line in cases > such as =C2=AB--dir *(+f)=C2=BB and =C2=AB--dir $(sudo pwd)=C2=BB, = wouldn't it? Yeah, i guess it would. On 15 Aug 2019, at 20:28, Daniel Shahaf wrote: > I think you want ${^stow_pkg_list} in the second instance, don't you? I was assuming that you'd only ever expect a single argument. If the = user did something like `stow --dir=3D$arr` or `stow --dir=3D$( print a b c)`, = only the first element of the expansion would be the optarg; any others would = probably be operands. But then of course it's possible for someone to do like `--dir=3D{a,b,c}` = or `--dir=3D$^foo`, and at that point i don't think there's *anything* sane = you could do from inside that helper function. Stuff like that is probably why most functions don't try to do this dana