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 D7C082B12D for ; Sun, 14 Jan 2024 23:37:52 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1705271872; b=irheRAs056CmTM9Kb/LGH1qe3Rkeb8xNBcRP4mqFO06hBTeYz6c+oiDOjVVGQXw9tzlI/huxwh ke6Hr44B8L9gULQjxT5yjayKypZvLRY/+pL07TmuBoAg7ggSpdAo+L0qQWWxMuzLk7vdI+gBm1 xXjLAk90qvqGlrW7FxYOOEizH5Bgs8gp85K65G0OTQWBLqT5hGNBCaOJgXpbRYVA21FD6UmQd0 rOAJmxtqKnC5KC6T6a9DoezGLBPmybpsS5wMYhem12XCUnDIjwispi3F6HZjDtY07ybyqed+AF ddOBB9jbCrJ8vfqMIlhhKZQTA4cKvUqRNOFq2s2ZVGddYw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f46.google.com) smtp.remote-ip=209.85.218.46; 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=1705271872; bh=KJZhALxl4VcmjRC/eEWYDPyfDJU3aDkAPrN4Tb6+z7A=; 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=UFYA54UZCYhYBH401dd6BBLIjIYt97pHVxhSlc9IgHAQt+cf4Pm00e1AsaB/XNbI9qqCftEQv/ m1eOiMQ0ONcpB8BsKZF7yZJj0MhuYU2truTGwGye0diw31P9vjfibj0t9NMpx7oZLy1ye5C5Ht S9yfGVAX6hNU9rEUDivC80FeOQrJnEFbWqJUvOP0G0c+xHysIDAON1RssvJyf1Rm5FASEPCqFh wyikg5GlTB9u054oUyP5Ge0CbEFEJtbFOV67pyryOMMVnWZNjBO3FSkBN+cy3IRsIEFZNcHgyU 45rr0uGJNlERnjMyk2eS2ZbX258IujfdMW0Ck0M6uSlbSw==; 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=eaSaW3edUzOaBSYId28sYsF5otHny9ndVE4b0Vip5i4=; b=ecpRpSWJpJvKUGugzgqjVvJnEV CUezNq6Bh/aSedBUqhqR9DU+4CGkf3wg9cXaNES8n5kCQ356xYzwV+vkdQtnihvBql69D5qfy1wbj NNmFxGtN4VikbXVL2pmQqipdBvSlqP5CBT3GyjLH5t0TZ3eYET24EHEwkNyZvmze8PlbQrdXtxTmc XCs6CsCeMU6XhxDe8r+uLl5jv1mMC6SHggIq1Fl2064QfsHKaJXII3I+sthoxtNVfvqEQJWSCGdyB EXkhHFlF5O49ktkE2iASGUX3B8q+ux3tpwLk1WTZR6fvEAA3zQ8nUXyMu+hJh6jiTtAUnWi4ZXw08 7PQ5AW/w==; Received: by zero.zsh.org with local id 1rP972-000JxF-Aw; Sun, 14 Jan 2024 22:37:52 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f46.google.com) smtp.remote-ip=209.85.218.46; 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-f46.google.com ([209.85.218.46]:51215) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rP96Q-000Jcz-Tb; Sun, 14 Jan 2024 22:37:16 +0000 Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a271a28aeb4so884199866b.2 for ; Sun, 14 Jan 2024 14:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1705271834; x=1705876634; darn=zsh.org; 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=eaSaW3edUzOaBSYId28sYsF5otHny9ndVE4b0Vip5i4=; b=n8KTqAi0JJpqbbX5ZP2eb+8QjUknvIv0Iu+RvllRVIckqwPmVBIMVVd3QJo82jddhL dD7LA6aBlWvIrp4aMCMOOncPlp0nwhPCyqAYd+zSTKcWVwVuSd/bffTMpC7rC3Ii4s3v GIATdJFCKBkdepomxQYjGR7xWyJwO97UNP9tnd9weizPUPPtJWunFeli4s+hAcE+R7vT PlGyDQPRYS6+c6rh3KUPkf6uB5f4MPNtV06Frbn5Nz7vxoCgZ4Kp/Fv+X1nZWTJ8AiIT DGdiU1norVrPckgjZhKeBZ/552V5DqHKj2l0Dzd2iWitgH7QN33pOJAuIZCXkt2absCh LFhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705271834; x=1705876634; 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=eaSaW3edUzOaBSYId28sYsF5otHny9ndVE4b0Vip5i4=; b=BIcorhIjcm36MTIVBh9upAGzxfsMcnnbWlVJgjaFw3HkjG+NHSZ9FujKIKKl9FXH8s 4AcS4IEyVfsOgUBbu3O+sJ5D6a93tL+XJBqM98OLUgxdUZvJn+eeNXJMGBRVFOAxP3hw N3olGEEZGbX33Y0q+tmMarnMotYxhwtiQ1QXRDMrMwHaklYk38QPOpNZtKYEElC/YpZO b2RY1S7KFwOu7G0EyYBl5GBPBPPhE84YYxwdjcaLaWFAtlJRIkCXvVsQnX7dmJOKActR ecpjXYkPPwSLU5nuL6RbLT6JwjHZtcF/oemh5KDOP8I7DwE+UosO0J2Ge6prEkGXq/tB u2vw== X-Gm-Message-State: AOJu0YyG2ZM6rQBCl6/cHXGZY+R+g2vlfrD9MyoZ1LAkj5PYAkG+znNU MVx16vyIzLsPksbe3axJFKDhwgYRgoWyActQ08ApnGocJaDiu2VB/qO24Ug= X-Google-Smtp-Source: AGHT+IERbiVT2uTkERXwC0cVid+qMFq50YRKHNPPjv2Uop0Q5LxRoLJPpN5wyZtNn0AqvCFJhZ4mLz9aj5qNccRABmc= X-Received: by 2002:a17:906:6094:b0:a29:905d:447b with SMTP id t20-20020a170906609400b00a29905d447bmr2081750ejj.96.1705271833917; Sun, 14 Jan 2024 14:37:13 -0800 (PST) MIME-Version: 1.0 References: <5cf3cd9d-d2f7-451e-b42b-f10c0d12c625@app.fastmail.com> In-Reply-To: <5cf3cd9d-d2f7-451e-b42b-f10c0d12c625@app.fastmail.com> From: Bart Schaefer Date: Sun, 14 Jan 2024 14:37:02 -0800 Message-ID: Subject: Re: [PATCH] More stuff for Etc/FAQ To: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52480 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 Sun, Jan 14, 2024 at 12:47=E2=80=AFPM Lawrence Vel=C3=A1zquez wrote: > > > + mytt($(command)) removes trailing newlines from the output of mytt(c= ommand) > > + when substituting, whereas mytt(${ command }) and its variants do no= t. > > Hm, this diverges from the behavior of (m)ksh and (soon) bash: This was based on the discussion (and Sebastian's sample code) of how mksh ${|REPLY=3D$'abc\n'} works. I thought it better to be consistent for all of these forms. I'm disinclined to change it for native zsh, but I will look at whether it can easily be changed either based on emulation mode or a setopt (SH_WORD_SPLIT maybe? Hrm). Defintely worth mentioning in the FAQ tho.