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 D324322D51 for ; Sat, 24 Feb 2024 00:38:43 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1708731523; b=F77GOe1xJLWYHgd2oO63OJigyFZFJ8vlqJz55llEoHpAnfnVsN3Ueop/umF2GMXIzb1gRxGCnW gD7+vuVkZuJadFkuooAJ/4gwoaENJuAd0tRuW5QXYVlRr3G2A6HhlErDy1fvAq4f7QIaDsBXnJ cEXdIxRB+CYfygOnaN1cfhOu0skRD8d/0seTYvh9IlPko+EDsjwYeaT8IN5wC7o5F0hcv94YdE 5fqKTwHHRkdG4mtum6wcBsFM56xYO3z3eytffMM/n1RvuaU5uO+Myv3mR95YALrSvD4LfO7t+X YZPq7ALLWi5zG95kZ95Ejxzj3xE6vgTTvsEv/SUu2kOQlg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f49.google.com) smtp.remote-ip=209.85.208.49; 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=1708731523; bh=DaA0hKL6qm2bDRww6LlsmcSflzYnTWbba8X0zxju5yk=; 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=CS1LjbupO99uK61cL+5yuNSBFarfhpqSnZhKYfXJjEXRZJ18ohbgFDP7i9hrcScdDgpjmPZlY+ ukvBSWF4wwPJyLXAp3IpWzGlx/kIsh9ZirGs/mtkgK4e8JS1v/fkanLikC2t1F1tpwJ7Xh8emJ bcM6Ae6TSlDW7hAp0bUWSXpnPxGDac0uwrxA1elyhpTt8ntw1+6DEn4o5AIt01Luhe8SeQhEFS Yxo6KqiY5SRBGyUlUmpSylIA5UAXLbx23Qu/lA1yDfqtFe08HOEQUKwhWF8XxQB6y8bsCG/cS/ zI9JF96pybWPQFriQOH9gffunZW6x+sAVmqRcVyxlcCDpQ==; 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=DaA0hKL6qm2bDRww6LlsmcSflzYnTWbba8X0zxju5yk=; b=bvBXFHXZKM7yajNhDR4QxXPS4B tmAy9rnAw6qzrvAtVeghkWCxBrgnzLIwHofm2tkHyp2BVMHrTdBtOkIjnIYyBCJXViXozLbkEvuKd qGQQzZ0QR5kQ8w+hdaFjdClLq5Lfz72o02AT9QxkS2tmG+A0jl8k/jEWe3HOfbqUsLsZuwWvwj+na uEbpTFPqiTLfbHKjwsSjDvybFidAy6zWTDlA0H3S8AacQtUGB8r5+apAY5BsNZvyZSg4oOMvrMAP+ d12lqhfnMVmqr9NH9dNt9C5nE71jcNQFR9RL7HunXkzqBfx4bxpoKrmFGdkRmRCRBv3EUaj/vcePl 3B9fOmsQ==; Received: by zero.zsh.org with local id 1rdf7r-0002Ol-33; Fri, 23 Feb 2024 23:38:43 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f49.google.com) smtp.remote-ip=209.85.208.49; 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-ed1-f49.google.com ([209.85.208.49]:43201) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rdf7c-00025X-D0; Fri, 23 Feb 2024 23:38:29 +0000 Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5655c7dd3b1so1716308a12.0 for ; Fri, 23 Feb 2024 15:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1708731508; x=1709336308; 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=DaA0hKL6qm2bDRww6LlsmcSflzYnTWbba8X0zxju5yk=; b=3IBfJM/gQTXF/prvBZ3I5D6tiTxeUqBKuI//kgjn4z3BgE4fPGrrTjwjOadzj8rcKS ooHV00ShKXMzYaiCIDJ1Q869Tj3VFr7krIVSwY2aZv7SxP0Mq1ogbJlmiPs4p6grCik8 AyoAARIyvfd1HCYPuIz6agQJYQZAmuqtS6aWjUebYV1vfbHkAkG3ZBaiQWMGV+sbIeW9 dzVp5K6z4Z2mdDuCJd9uxZ28MeSj03mIJnvUfFUosls93hs6FNxOwwCCpzKc8E88v447 oKuiEi+J5uT085XhUbtlajvXQzrWA1MeLrN4uXodyVgDH9u4hHC0pWFcUb+ZNvF1s1zO R8NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708731508; x=1709336308; 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=DaA0hKL6qm2bDRww6LlsmcSflzYnTWbba8X0zxju5yk=; b=K5U81ofT6UdF4YPCWJf1T95nz0jbhi/ulNbxkK+ZCNTXpiumqiB7xufN1ZgxszC8Ro Ze/2pvg3VoXdzgKniThrMYyMCAnKUNRDsGWxlOkjevbewFl8rYgMYgPx6IEOna17xP66 BJZkHV/5bD+ONsq4RCg506d2e8Xef9spn40qC0uJ3AX30A70Tf5+XW4q9Ph79+Kh0eZP ZMjyUNRkGEz32fJk9Z+WQ2r8s2KzxmRatWWiZLUbzVYz7d6AeR7mPpZMXvy7coVRsw59 ex6se6o1WDPDAXmBuhKa2r1Q+D6MBZ5E+YTxXdLX6YAC49ZERt+uX5alftq1RbwytWOQ U5uA== X-Gm-Message-State: AOJu0YwE04seNh1kSZudbxEyAB3cpla1CIlaMTHAT99vwHgP4VlFC4Fq 4n1swNQL/6uS0YBntcYQzbIGkR57ne55K6FbgBjfrEqNvZ5U8HmWVKsVqXVkf8reyvkPZXQm/UJ dUij2g8z2O6XgJzLyoYMWKbIiUZKNdpcVtNtkIGqeqDhVuAU= X-Google-Smtp-Source: AGHT+IGOtSpnZ8WdX0s08z6T3kr4gtks9I5NWsBjwutD/dCfdwtqxcCig3wSQ2pnQYPuuEWPc2lfR9ou/qgoEISrcMQ= X-Received: by 2002:a17:906:718d:b0:a3f:8dea:85f7 with SMTP id h13-20020a170906718d00b00a3f8dea85f7mr1071881ejk.15.1708731507667; Fri, 23 Feb 2024 15:38:27 -0800 (PST) MIME-Version: 1.0 References: <20240220193911.avnmcqfliwltkj5m@chazelas.org> <20240221194534.o2mufin7orng6ttg@chazelas.org> <20240221202150.tccftcqbxqqexq4x@chazelas.org> <20240222072313.7woy5vxvt4fbxyhj@chazelas.org> <20240222075528.eruaoosiuhmcrdsy@chazelas.org> <20240223192717.tczrbc63fei7d4m2@chazelas.org> In-Reply-To: From: Bart Schaefer Date: Fri, 23 Feb 2024 15:38:16 -0800 Message-ID: Subject: Re: Metafication in error messages (Was: [PATCH] unmetafy Re: $var not expanded in ${x?$var}) To: zsh workers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52588 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 Fri, Feb 23, 2024 at 2:32=E2=80=AFPM Bart Schaefer wrote: > > More relevant to this discussion is that math errors are one of the > two existing callers using the %l format, so any attempt to improve > this is going to require changing those calls anyway. > > we have just the one known case of wanting something different for > ${var?msg}. > > There's exactly one case so far of wanting output to contain NUL, and > per the "only caller can interpret" assertion, it seems worthwhile to > use %l for the NUL case and let the other 3 callers decide to "nice" > the strings they pass (or not). That last sentence should be "other 3 calls" not callers (there are only 2)= . Having worked out that issue with bin_print() [other thread], it appears to me that NONE of the existing calls using %l want their output nice'd (for example, the only way to get consistent readable errors from math garble is to output the strings raw, or at least something less than nice'd and yet to be determined). This suggests strongly to me that changing %l and scrapping the %S idea is the way to go.