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, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22454 invoked from network); 20 Sep 2023 17:30:17 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Sep 2023 17:30:17 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1695231017; b=NnD9qZUad0TggCGWOtxDJ0EJ53h//UEO9bBL5dtSud/0ib4bdbIS/6ElfuS30CwwWXLdxKhrwW 4cT2F343pucWC2rfml4TzDiP5Qa7kzNU9ixwaMen2eFANxKMohTYf28PFKGW1D0y6bgPXeF1N3 ei7r8ZIeQiLdl1tIWSTw/waavSPzAV8LPms/twZEU74h892k7Lm2UBOPjmWbjv1c8AWU8n8DIu EAsuXP2G/aBspDBZQV9T8rEBxfd/tlNrFMaigL2JBCQGeSoCxc6/VR+1IHyf1CEg/tQgNV7fjf m6ZU/Jtd1RfoHqZF6m4vMvf1pR/zhiK3GJF+rPmsT11wZQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f173.google.com) smtp.remote-ip=209.85.208.173; 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=1695231017; bh=z3PWh//XnLPa2D2Tf9Jad6V5y5fpdvvhmHaAE4Vv9SQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=kIWsco0q7LITBllMGjZb6Na+BlDkianhta6WWxCGlxyJi8qpOTy50CJlgg9k10RqL3LQkNRb5t n7UbmAIZ1sFg/tpIxWVurgKV41tbujJ/B8JZuQ0iDcIArV+BjC48wiM/CxtC0LJQbKe63LB2+l 39ZYkmZ84hQ/GfDBD2GdGQtvk1lYQVId+7EKLAZ2+/J/SOLRJuqvVqRri/Uo4DiVsAAb+FYKCk aC13CrScmFD6PIYnjyo2MmptLAVCrw64n3ksHDJW8U0BmuEA2Dh8foJyTX3m+1JMnsr/3wPgqt d31rIHUi/8aPJ3XfwX+AVnUlUmU+XyCBYkFr9B7YkeImZQ==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Chit75tUiR1zqoD2d8ovvMH+cQLZ2HUbeO6U1p7x08c=; b=N12iwpsShrpPz1wl2nt7PtIO4m hWvH8whommS9b8kv/XUbsK2Wh14rScK5CUz2Xn50kFVZLVNPajt17nEJcrPe4cm1AKmtDIMeql6wD 74PsgnvmMgPLDuGswwwDInO2jVi/KfXJS4jtFJC1dH5d5UOQHlvIVnDu6Rku6U1sllrWUIuJ9mA+Q fLu0TByBB2aPTKotQSOfIgzZbxYwrQ3YGRZ0l9JlgOHbatDy2FIoXfMhyszGx1TSCkMNLv8ZTxSeU fFwkZ+LZi31WOdfTmGMr/pAleUmfjqjRMZdZWsUAVgFUZdKYvTPdr5qRGw6/3Hd34lVYBj7f/3Pw7 ct797jjw==; Received: by zero.zsh.org with local id 1qj11l-000Gl6-Lz; Wed, 20 Sep 2023 17:30:17 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f173.google.com) smtp.remote-ip=209.85.208.173; 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-lj1-f173.google.com ([209.85.208.173]:45488) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qj11W-000GRY-6N; Wed, 20 Sep 2023 17:30:03 +0000 Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2ba1e9b1fa9so155211fa.3 for ; Wed, 20 Sep 2023 10:30:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1695231001; x=1695835801; darn=zsh.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Chit75tUiR1zqoD2d8ovvMH+cQLZ2HUbeO6U1p7x08c=; b=PyPbxY0MNGuScQpHvE82GXxg8d7Hwp1FsonGRh6pR67rkst9gQ2O92oCDxD7/2nyOp adQe++ykwUhzH2b6xT+D2CIySlbJrllf4GzZ/gr112VRKdLTXy67pDehtvGaXYkhH+0i ma3uzxtV5uQdxTIX/5NUputoJh7FafbDA3fPVuGVw6CgdJYKoNgof2VjSNwbjgcWlrig k07jP+PMCiIcA+QqbtfH53AR42J3LQ7dBMrN9JHfRtVzVShXRA1QgyXls4SDt8uQeUih KD18KqhULF+IiD5b2acYYojTbir8Zfe/FJwSxHEt8RJHbDjrW54egNwEIk1gUkYZ8UUk cFXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695231001; x=1695835801; h=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=Chit75tUiR1zqoD2d8ovvMH+cQLZ2HUbeO6U1p7x08c=; b=O+sBEgsRXiFUNRQZx0rbubzCOj0DjcHANMXuUQtWaYbMbJxausBGz/or3hrcQBD58J mN2bCmJdhD/Mv+1y/8ku/T5Vyvw46eMzkwU0hXfn0F+uLwRI4+LpuVQk9gxbCll4Cwuc kDBwpHJDVYNl5JFCfVXI4Q1ML8f/Vxr2JYQqCGR0fcm14hxzCK9xrpo/QbV0LRDHRP+h YfagQs/nKLpNjC1z0vylffTQoo3Ja1WTDU6NhS4NR934YIU7oEpY1J4VvOTQuCCkaZCr CqpCBMzuvxbao6cEc/FP1SsqqYWREIt+PwEd7URsi5/07HH1wZgBDs3mlPZ9WgzOQYDC VmTw== X-Gm-Message-State: AOJu0YwYlBRlEXjE2N5MbYkcIzRkyyCEwqSvCtVW1bsjqKQoVEVYmed8 nFSk4NwEuatuIlEOAaBJY9xb9O5KV3yOG0G/p18yQAf0GltLwCs+ X-Google-Smtp-Source: AGHT+IEMGDv+PKadIWyyaIMbAPfQfNFl2Fos7hoOWZK9035+eLBa0B9R3nTcZLEMIvHUsjhuT6qrk9+REP2s85pt19E= X-Received: by 2002:a2e:9090:0:b0:2bf:f5d4:6b5a with SMTP id l16-20020a2e9090000000b002bff5d46b5amr2980218ljg.41.1695231001178; Wed, 20 Sep 2023 10:30:01 -0700 (PDT) MIME-Version: 1.0 References: <9993-1695230403.478634@56vb.M_iZ.HRRz> In-Reply-To: <9993-1695230403.478634@56vb.M_iZ.HRRz> From: Bart Schaefer Date: Wed, 20 Sep 2023 10:29:51 -0700 Message-ID: Subject: Re: github PR to "Add command to improve robustness" To: Oliver Kiddle Cc: Zsh workers Content-Type: multipart/alternative; boundary="000000000000a356c10605cdb97e" X-Seq: 52165 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: --000000000000a356c10605cdb97e Content-Type: text/plain; charset="UTF-8" On Wed, Sep 20, 2023, 10:20 AM Oliver Kiddle wrote: > > I would guess that the cause of the "bug" is function wrappers being > defined which wrap ifconfig and ip to apply colouring to their output. > > Any ideas? > If _call_program runs in a subshell, it could start with unfunction -m '*' That might be a bit violent, though. Maybe a zstyle listing functions to ignore? Or should we just tell them to test something like [[ -t 1 ]] if they > insist on writing wrappers for system utilities that add colour. > That would certainly be best practice. > --000000000000a356c10605cdb97e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Sep 20, 2023, 10:20 AM Oliver Kiddle <opk@zsh.org> wrote:

I would guess that the cause of the "bug" is function wrappers be= ing
defined which wrap ifconfig and ip to apply colouring to their output.

Any ideas?

If _call_program runs in a subshell, it could start with

unfunction -m '*'

That might be a bit violen= t, though.=C2=A0 Maybe a zstyle listing functions to ignore?

Or should we just tell them to test something like [[ = -t 1 ]] if they
insist on writing wrappers for system utilities that add colour.

That would = certainly be best practice.
--000000000000a356c10605cdb97e--