From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 3ab86480 for ; Thu, 10 Oct 2019 03:30:38 +0000 (UTC) Received: (qmail 13959 invoked by alias); 10 Oct 2019 03:30:29 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24341 Received: (qmail 26342 invoked by uid 1010); 10 Oct 2019 03:30:29 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua1-f50.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25594. spamassassin: 3.4.2. Clear:RC:0(209.85.222.50):SA:0(-2.0/5.0):. Processed in 3.679444 secs); 10 Oct 2019 03:30:29 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.222.50 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kzjD9DzrdAmTYaMxazapq6VBncFrry5RvZ2dcqHfRZg=; b=Kh8+E4xQznace6a+MKnX/M4hwTv53vvgTDD4RLzb8yyk5EVGYIiXMoqfBiAFni8DFF H9sQoxqZn54OxAQr72RKNAjqlX0p+a4PEvaGV6TvoIB5rmBZW156S3JsY3shcy4N35bx x98DhXpy0WeCJFSNgw6quyKXeoSRjjXuEBodoillCWn2GC4YbGNFijFhD6MlduOzQmvf P1vkgnbUwOnRfxKQCTeKYgN3jgoHSlCqlcgMAJ4h2bg6s5SfWXRGIEKBstLCLVOP6NeZ BJJbEbrJBUJpP/J2lxYWpg59a45nEqtrO5LR6xRuikN1N8bc9Z7o6+KE0CtlsRcaEN45 kH7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kzjD9DzrdAmTYaMxazapq6VBncFrry5RvZ2dcqHfRZg=; b=lE3yQAOf6J40YlmLol87vIKooni/7S3ccI9yTwFAjJuJgpfPemr57ScqR1hqTutQ/4 vFHt/gXfxCteO27IAnm0WrexCmvj0C+dqzSzRB9XIh6cpgTJ5sKu1krREgyZMfPnEblK yI0ntStJ1UOccWXrmF/AR1xD40eTCyEKlhA4tNjxgLlCc573j2DBbWkoYO+bQRrbi2GD WVh/Bew323UDixjNVo46hf1dHPEv4kQZi2n7n1RrmwU9YgYizhXMKFDTeXzRB0awG//U 6F96kNHydkVObDg/e7QHbte7q8JOIeRdcF00H706s5F4mjRtDKZyEPL+NxiehoRYFIG+ coDw== X-Gm-Message-State: APjAAAUeyhoGy8FhwywfQKtKjPi2w4DUDJXeMRnFAv23Ohh3gzDT0BRo s5BBJvLIkA/sQM4YyaD8Bo9kKm94UAqq3XnrOQ0= X-Google-Smtp-Source: APXvYqxowiCTV2mgLvFbNHbWVOwp24pF1p0Y9bUXYsoTHvuB7kB4/nnX0PPnZbk+gVZbCL830Bv+ZI53adPLYNIbmu4= X-Received: by 2002:ab0:2456:: with SMTP id g22mr612827uan.82.1570678192553; Wed, 09 Oct 2019 20:29:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Thu, 10 Oct 2019 05:29:41 +0200 Message-ID: Subject: Re: Feature request: a new warning option To: Bart Schaefer Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 9 Oct 2019 at 20:15, Bart Schaefer wrot= e: > > This seems like something better suited for a shell script "lint" type > program True, it's well suited for such program, but maybe it isn't that bad also for the shell? > rather than something to emit as a run-time warning from the > shell itself. There's also the question of when this warning would be > emitted; if at execute time, is it really doing anything useful? I think yes: it would work similar to warn_create_global =E2=80=93 when working on a script it would emit such warnings and inform the programmer of the problem. The programmer would then react and change the code, preventing it to be released to the public, like in the case of creating a global. > If you want a runtime > warning, maybe do something with ${(z)ZSH_DEBUG_CMD} in a TRAPDEBUG > function? Thanks, that's an interesting idea. -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org