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 9727 invoked from network); 21 Apr 2023 21:59:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Apr 2023 21:59:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1682114360; b=a7F0Fn23CY7mhnz4ILAd3reVtcJRXVeAqp+wT9NAU3wgeKUS1uj8GBMyss8Sj+IBJNcP348F2l WnnHckVIKysts08D3f/3QO6X1E9GQ8aONReiNgMFrMDU7R6AAc0NNt83gw1KRoJ3Q6poQetr98 AjYkEm+aJMY6DQaIE5aAhl9PW2PQLvYvJ7FMVYOeLqVgEGIWK4LKt4hM0cHkkXLViO+VlKbme9 OhIk/hMvPoUK9mr7RfdNX5wA+SWmQBqccCqca5AypcNFPD70D4RHKCB+eL8g+ilKY5XVkgpHM/ UQbx5kek0riqV/uihgXqsID8SApfQRJPyVLxcYTvpfvACA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f47.google.com) smtp.remote-ip=209.85.218.47; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 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=1682114360; bh=1ek8Esg/2nxtJGFPz2cGETkrvTSSngk81IVhX0DkJDU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=WMoIaRKpo/y/5Lhfy/SbRJWKiSvvWgm3RBd1XRkaNsqWtFCSOkDNDyBC8Qri2GG3Irz6N4D0ze Ws+d/f6sNnMkuSc8Uf2+mPdj2s0t4THob2dmzUI8tKGD63fODZTJ8JVEuRIhWFNNZzGtW344wP LY5W+THHpspP3c4YgHX2Y5yfBXiwd50ubiF6HUoNchY0T2Ph0L5rHu39L4ftpkto0RVB4InV7V jVCq1xSwTuwXKxnYQuFnC1EfidP1pO5O8vURZi/r951YtdMU8M/S0ox1KL6fMOD3LoUhAJq+pR k6lo+F0wfhEfFaKsgF1W7y5l0G6fLjXzkeEU7R7sTREhjg==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=HAVw9KbAQLDfLRq+2v3CcklQqmWwMfbFxSCBNY6FU7U=; b=j+R1cenJkqI5i0lc5O89SEOOJw q/yRRI0QkaR9GTJbFAXWNo0lolL5okfPs74mteI5XUsaGCd0IUxYApd+W+ue58und67JDNKHoZvpN VmujihsXfo7/Gkowj3P/NFIPbWI8t/4JV8b2j2yvrS2CSFH5Xdbh7Lo5G1yCw/XomBti0Utd64MyI Kk0nolIJohjZ9voB7eKE6LS8Ou4ZwRKV72ZANZF3BkliMtgnTKH8b9boG1YJ5SpTGl0vNZaEK18XO PJRjGuV/CX9HzfcZ8fElxpNlM3yvkwPDieki1UZNHxxPj5jsnuby6j37zrXFm40HiVf5J0KqShaoE 0YJQn7/Q==; Received: by zero.zsh.org with local id 1ppyml-0004TQ-Kk; Fri, 21 Apr 2023 21:59:19 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f47.google.com) smtp.remote-ip=209.85.218.47; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f47.google.com ([209.85.218.47]:60913) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ppym5-0003mn-Jd; Fri, 21 Apr 2023 21:58:38 +0000 Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-94a34a0b9e2so295312666b.1 for ; Fri, 21 Apr 2023 14:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20221208.gappssmtp.com; s=20221208; t=1682114317; x=1684706317; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HAVw9KbAQLDfLRq+2v3CcklQqmWwMfbFxSCBNY6FU7U=; b=wN6D8dZEafhwpYI5tiJVJyyN+5uNU+GfR7exgsxX/tpaYwQVYo22IFUvfr+wqVe2FR rvHMnlvY1KIUcrqg5ce0n5NlhAVW1FBnfwlZ1L3VMdeuTisFMVsce5FJpRYHWIXdp87s jooH/DrDmnJKCZxdJTV4nsWMZnD0eq4uUZoEnDwqvJCNUX4eyydgvs+4IWgJTg3vWAd/ yp2oD8RAYLySEbdLf7g2hVi2gzmQP/+Czx/yCUlfLVPwkJ195vWDIMHlyuSXSTQKI8rM skb+NY+mLtGmSvC0vXER476Unm0hxPTzzXEWStQleCYZvwrYMuu663lSjqw8hAhxjWgX mF5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682114317; x=1684706317; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HAVw9KbAQLDfLRq+2v3CcklQqmWwMfbFxSCBNY6FU7U=; b=lRrU7IPLeJC4XMw6Tp85ErYkJf2DpbNJABpcAkIyjHhMREjAxKoYycZDUsZy1aOSdQ 0g2CE+sMm1otXdJX05EVQoPa0Rn9kzJ/w1SGE7lLNP0ZqKmdVaD5/kYYa47htd+qYb5+ GEWmlGQSgJp6Goa4fg9oFTEiSQO0mXUxoXWjqz/n8acnND8v9cn9hCq0hLT49YJfX5N1 2DvZWEt/WVd17J2q+MuXMcOLs1VT3837wrvGh3wXmQ4LgIAZJxJY+IevX21++wc8GOh5 HO1ZfiQteWQJ0axs4/Kz0vYQ5nKZHW2w2agTMbvNDFasVzwGrtGoockCh9sESmMhyEk8 pR2w== X-Gm-Message-State: AAQBX9dEGxD8XmRByrGbuckv5qek8OXjndOiRZ+6wfpwbZKloE7NkuB7 x23HB+JtZC4kswlIoaCYwLx5mrW3qau2RJoNObOa2Q== X-Google-Smtp-Source: AKy350alvNEIsCGgNHvX/G3iILu5GKW4lONpjzYhZIQBk5us4DVOWZ/BpzMc2NmtrSVaaU/FdzrKiX/MnPb1MCGU8z0= X-Received: by 2002:a17:906:76d9:b0:94a:171:83b1 with SMTP id q25-20020a17090676d900b0094a017183b1mr3841954ejn.2.1682114316777; Fri, 21 Apr 2023 14:58:36 -0700 (PDT) MIME-Version: 1.0 References: <5e16ada3-6968-78e9-7347-44b6181c29b1@eastlink.ca> <97340853-a204-e2f8-e85f-e1fbea4b2c31@eastlink.ca> <3f180a94-37a0-670e-f5e6-9122411ad416@eastlink.ca> <35874ea1-74f0-d733-7fc9-5b0ab51cc8f3@eastlink.ca> <5d46f8e2-27a5-9476-6198-d36335f78c32@eastlink.ca> <651b32eb-7cec-8667-27b1-e0efe56deb57@eastlink.ca> <1483562526.2152027.1682086378095@mail.virginmedia.com> <171aa87a-f52e-6fc0-d8c1-8ad6be9c9838@eastlink.ca> In-Reply-To: <171aa87a-f52e-6fc0-d8c1-8ad6be9c9838@eastlink.ca> From: Bart Schaefer Date: Fri, 21 Apr 2023 14:58:25 -0700 Message-ID: Subject: Re: permission denied To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29065 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 Fri, Apr 21, 2023 at 7:42=E2=80=AFAM Ray Andrews wrote: > > On 2023-04-21 07:12, Peter Stephenson wrote: > > > > Yes, you can do ${(Q)${(z)1}} which does the splitting, then removes th= e > > quotes (without any more splitting). That's probably not what you actually want to do, though. When I gave you the (z) solution, there was no expectation that you'd directly execute $chain -- it's not going to do the right thing if it actually is a chain of two or more commands, or has redirections, or any other complexity; instead it will just run the first command with all the separators and subsequent tokens and commands as part of the argument list. In this circumstance using eval would be much closer to correct. But --- why are you even bothering to split it at all if the intention is to run it? I thought the point was to put it in the history or some other editable place as separate commands.