From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 60B2021598 for ; Wed, 6 Mar 2024 20:45:35 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1709754335; b=T5IOVVVRTK1jC2t0wPuKWTdps5gV01GohRqC65xLlYXCZY05dq5Zry/z4PkP3XS1Dumyeht9tX 3+wgbcaX8zRHVH6kI9lfrt0Bs2hBLXZO1GWVIhPVmQOQOaEkcutsKSQY/PwwNukQ9p5cbGPr/C aBLBvSHooVnWzzobZgDtB+gEu/XaFAoG7QKtlurF+ty4Aep1vC9F4z62+x6ONBqpi7+ewUhiKn GCzIrlf+KiL/NFO4YaGa5ygdZElbIa2y/6uSFgz4W82oNIqDkJ+3HE0kDPZq+DyR3B54/8sQcj MKFPOJtrp+4WlbaIkIhB+81VMVuvuQvsYJlGb+3mfWEj2g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.53; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 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=1709754335; bh=is/e5N0afxf4WgFJnlZr7Nb99BVD3vfF8+zt9uFc+w4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=mlpUOTDKCBbA6FQXgHgbuQqERlmq5JSFFPhPQKuhRPeQsNFBU45G73Yc5Y00eqxpqOKwwjuhJF h5Z51V03C11WA1jB1bgMzOAfywZqBWDszEx5OrCq1m+GBP3ISjBsrWT2yQf0VIE262YC10YiI4 Vl+M9mUsxBAFOBKrqZuYuHSgKQsi47kNpFN1UhI5Ghv//CfgACRmnSEA575jJ5qROwBttQ0AO3 MbWXyA0XQKfm9kNew0/9loNgsTulCM0CemmPSgKdNhCVWwN5YK6J9cjNVbzYAStb+nJxSJpn29 Y+AwYlhbBJIYHsvuq0PUaqi/gmvc8U5DqHtBuncTXScbcA==; 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:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Sx5xbcextD6D1nzLoBjgV57VvNa87FVHJ6B3xhjfGuM=; b=jMSrEk/H6A+g700oCRZr8urNrc tKFAHymNdEk0lf3c60w+1J0OIv6H+uxAo4n7S33WX6l6HiI+vxPFH5tnZWdj5KVkO2p6/wcAlaJ/h fqGHzkORG5ZIIzrW/5bB9fm2I2GmqEMt5HOpvROHLtKsmA7ICoUfAidzN1QuMBto3pY+9y+2QfKZ2 j/4GSqs2oB4hba0KtXfYjBsgyK5llq/5OW0pU40yFHQcktgKwqIIhQdu1oKI0JZImn9i6P4S/i2ey MtkkhUhVLmIm7lI72Vn+00DZ9Le2eC9Khmix5+vhmmpVDth1DkpbxXKhdtMZUel+mGZxNoqzjBKa9 XknIRiDg==; Received: by zero.zsh.org with local id 1rhxCp-0000gp-6n; Wed, 06 Mar 2024 19:45:35 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.53; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f53.google.com ([209.85.218.53]:44237) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rhxCa-0000Ms-O3; Wed, 06 Mar 2024 19:45:21 +0000 Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a45bb2a9c20so19728566b.0 for ; Wed, 06 Mar 2024 11:45:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1709754320; x=1710359120; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Sx5xbcextD6D1nzLoBjgV57VvNa87FVHJ6B3xhjfGuM=; b=gOcXXWLBOhVboQABrunFKQGxPF304KWT6FWEfBU8Qh5KyQiun1Gk/0ffF722wyClIP KiXnB6BvMgIkqgjez7qvYFOHIEBjliQuugUdvqJb6AKVx16E5WorQlN3IzP21So99PjO d7fVsH7bg2zx+LKO1hgEb6PBpC6RVTV9e+l4vNyLQUwB9lvovBchd90mdgqvZFlfaEzf d0u9W9oRlcsGX9IIkfouYi83bl5AYQnR5Myd/cKG0Ore9QG8Jwk8k/d0ALF63MR9ptf0 1JnNGiipb62QD5Lmvw2LaPmyrncMkR0gHBdGDzkTm1SG5nkLna7obYHV9j2qQjdQFqvB u+sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709754320; x=1710359120; h=content-transfer-encoding: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=Sx5xbcextD6D1nzLoBjgV57VvNa87FVHJ6B3xhjfGuM=; b=LS2XHD2FpzResRf5kXLUbz1Tfu5Jq5dpiK0mVLDZhfCuVj3kkcTfpQMJdKDF4dM37g PE6e24WLDOnV1ol5wjkV0TJmITIIB0Utl2HDCLMRhVyBHjphPzPspPEpc14XeNnWByvS iMTRgxP8Yv3cJcT9kkimZxcCUwz+oA9v0QQ5o8w+RwEmdt3tiBVjjbLew0RSEvUeCcSN Za6wTycRi9//okdsWKU+rp8Svv1CMmz60TqFYmHHVJf3kzo4hXus2dPHGFaANqrJN8aq lkzv1ji8/XawdIoOMABb93jFI1+libZBbRnVIaKODXqxNz9MinCDSH8xy05VGBVE4fTX 9ObQ== X-Gm-Message-State: AOJu0YzbP39AgI1ufquKA0HQ+BtGRovdcHbw7BG+o+ySsrrIa7H94wbg 2G35BroTXfg1VCyQOwJ7ZDf2rPC3PcyP7cEqfgpKxm93OmKszqR8RXXjkBnnAcORIyIUMTRieqP b08ZRHnHwnCQE18rJWMRnXCQBk9/Wkd7gEr2eIq5khE0GHjU= X-Google-Smtp-Source: AGHT+IGODFw9vVLeEGb4AImAjs+6wnGWS1PtVut5KUhC7C9aoPl/pd+ZIIH7KtWT7DCUW8j+FYRzK7pddn+13h3iip8= X-Received: by 2002:a17:906:394c:b0:a44:e3d:68a8 with SMTP id g12-20020a170906394c00b00a440e3d68a8mr11722540eje.45.1709754320053; Wed, 06 Mar 2024 11:45:20 -0800 (PST) MIME-Version: 1.0 References: <20240305065606.ccr2ieheahslcpye@chazelas.org> <20240306175711.t3uz2sery3b6tbjw@chazelas.org> In-Reply-To: <20240306175711.t3uz2sery3b6tbjw@chazelas.org> From: Bart Schaefer Date: Wed, 6 Mar 2024 11:45:08 -0800 Message-ID: Subject: Re: [PATCH?] Nofork and removing newlines To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52698 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Wed, Mar 6, 2024 at 9:57=E2=80=AFAM Stephane Chazelas wrote: > > Sorry, I hadn't realised ${ cmd } also didn't do IFS-splitting, > so it is indeed departing a lot from command substitution and > assuming we don't care about keep compatibility with > ksh93/mksh/bash, I agree the proposed behaviour makes sense If SH_WORD_SPLIT is in fact set (as when emulating) then it is applied, so that's the other-shell-compatibility path. > Either way or always removing all newlines or always removing one > newline or removing one newline when not quoted are fine with me. Thanks. Anyone else waiting to weigh in?