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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4845 invoked from network); 12 Sep 2022 15:33:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Sep 2022 15:33:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662996800; b=MhKLjPSL3NWZv3Pv8PwMY3msA7rRh8v7VNqr7CtkfQyBi8HRgcfJOEBpdACPAbt2p5PFlK4dy0 /dnNGrB5hXHTVCHNv3DLwydiULV/4bYruFAxEJ6EVqFT7LjiFRFzGJL8St9J7iBHtZqjNfrxZh RNwx6XaHVmQEHnrMtBhwEmWwiKT3airfZrgOaqsHDodxM5GLmW90foiBCoTBIUbhmpmOjKWRlX 8xfJrsepN+Xb+N8Ppo4wMrl0gAskuZ2AU4D70yzCD3V+FFhjQWVs8aAz2zC80MI0K5PWjMGYza XUbK5wIaGreWX7cXYF4lQFGoxbJajISJcV0CoGtJSZn1Ew==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f173.google.com) smtp.remote-ip=209.85.219.173; dkim=pass header.d=alumni.princeton.edu header.s=google header.a=rsa-sha256; dmarc=none header.from=alumni.princeton.edu; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1662996800; bh=81RQbSoCDNS9iom9exWt0y2aOWuq1FRdIl6Fly2rmDg=; 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=pwWc9Frpwuc9fzCoOwgggQHngXrycPbjwh/e+SIPFY5LXIRhtwYOfoTAy32oBkYP6lwjFtiSOz DaZSdgF4omVZDzg47RJ5ZEnbiKyWLrq2lF7nthnxDsU+AQyZf8nTcUzeRWnklnWkjBSt0pZMX2 pH/KrRHWG6d4VAG6pnai8Humbw3XgDjJitvsMuOf9o24jOR9AO2RIi9Dxg1xb8INy01lB+3U3G WB2WjlCW2ta3EcQX7GbhKNchGSJfqGW/mWXCZkJLPurASTQoo3BUQSJoWB4KNYy3hQOdQftkDH 6QejlTm7dp2bBcardaag7Ju5YwMvbpZ+U0S69BSO0gMh2Q==; 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=aKAfEi7VSKR3YvKifOXIEQyWrOy3TLERpc6aUuMql8c=; b=rUm08MfqbxPa0L0bJwOU6aeD2B 2i3Drrfq8j3HczfmgWGmm5fjX0mHrHN8/WIIDTVZQJrENg8HBAGy5dBuyZcbm/OiIDTjk5JRJXLzF WHvUVGVVY/wJEvkvpVA1APa+A/0kRCxWH0WaGei/DvbImhOv2D/WMNoWWLj/XTFGDOV8o6fJgRpaf IRjd8dq6a36Eqm6itTH1KyR4jWG32bU4OYb9J+A40rMLt/o4iJFxh/OMNke9ujj/t8Ptp5n2pcFMj C0T/ZJV1mO6F8UBnqr1vHBJnCw8u+8jpUGTWKJQqKKdA2744ooslq4y1u9gQFuTeeKwupXyS0I6H+ q7DxxaoQ==; Received: from authenticated user by zero.zsh.org with local id 1oXlR0-000F62-W4; Mon, 12 Sep 2022 15:33:19 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f173.google.com) smtp.remote-ip=209.85.219.173; dkim=pass header.d=alumni.princeton.edu header.s=google header.a=rsa-sha256; dmarc=none header.from=alumni.princeton.edu; arc=none Received: from mail-yb1-f173.google.com ([209.85.219.173]:33315) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oXlLo-000Ebn-O0; Mon, 12 Sep 2022 15:27:57 +0000 Received: by mail-yb1-f173.google.com with SMTP id p69so6653840yba.0 for ; Mon, 12 Sep 2022 08:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alumni.princeton.edu; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=aKAfEi7VSKR3YvKifOXIEQyWrOy3TLERpc6aUuMql8c=; b=LY0QD7R2PsEd+SUXRW7m3bLiF2VI+9IG88funQxnu3hqoARwTQ+RQAS+H4Dz9fV+9U MaIq/Qz3ud8RGSJrr4KZswsKWgCU82l+E78MR8K+ymfE0xg2jAsXgQfsE6J8DQvsjICP cB5pTkLq1gAA+cwe/prD/6hV+h2BarNX1wQVPX1h05WwM0tAnQIqEOh+TimzN8aj3gaf gZyXkEXHP/2PNK/Tgl2Gq+5hD59AJ3IyFyCCU6ROmeC9N01JcNKADz8qLQAglPhqCTFu THePe6os77Njsdoc5tjyn0rJSgjBmfBOma5Xs+CnEqN/durrB2qmymqs7pQ2pz6rSkeT ks4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=aKAfEi7VSKR3YvKifOXIEQyWrOy3TLERpc6aUuMql8c=; b=WeaJisTVkZCpxqaogHRp2MWgABqmGCnHGe5axKe0YrRaQ/jTBxlWOvR5YTs9x7mIDK V9XxbMcH9otzHlv1fyuvNqflFBjAJ3iTTor+aEA23r/TlJlhkFJhzU/P2nNslZZe1og0 Hk5pia5OUapAS7lfyAp3edLp8rQbT91rsk5SbeRUpWF9uY0HuxzYFhz1liurH0HSjYyz FA+Ty4dbzZ73VH0+TdHOGSZxuv18bvOO08EqYpmVP1c61ewXOyAH5pGBet7nn4imYB2A 4cSO4c6bUhuzbTTVKdMBfDupLcamWev1ctZaf74+A2T/FSAUcQLc3v8FMWwfUO6/+1nv Z+nA== X-Gm-Message-State: ACgBeo2GdnXYHOKe9mTR7Z/knbQmOBXylDj3BqhMQBypalZQEHxPOEQU ewpIixG/J6rl4wrG2o/8G2R0x3lMCI7izcOAZ3w= X-Google-Smtp-Source: AA6agR60se6iX0Gm3hQADKTfyOHXWH0YwUvjo8AHTHHiHJkg99XLNIRyWFhHHupTJ5YerOBNd4l5IaoAX8xmWvy2J+A= X-Received: by 2002:a25:b90f:0:b0:6ad:eb91:dcab with SMTP id x15-20020a25b90f000000b006adeb91dcabmr20437334ybj.435.1662996475140; Mon, 12 Sep 2022 08:27:55 -0700 (PDT) MIME-Version: 1.0 References: <8D43BA5A-84FD-4737-8009-059430DD039E@kba.biglobe.ne.jp> <5df78024-40cc-4919-9610-32fe7c761851@www.fastmail.com> <46F0A32F-93D2-4E67-9C72-2DC924AC21FD@kba.biglobe.ne.jp> <551112370.534185.1662979770948@mail.virginmedia.com> In-Reply-To: <551112370.534185.1662979770948@mail.virginmedia.com> From: Vin Shelton Date: Mon, 12 Sep 2022 11:27:23 -0400 Message-ID: Subject: Re: Deprecation of egrep To: Peter Stephenson Cc: Jun T , "Zsh Hackers' List" Content-Type: multipart/alternative; boundary="00000000000029deb305e87c8a93" X-Seq: 50628 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: --00000000000029deb305e87c8a93 Content-Type: text/plain; charset="UTF-8" On Mon, Sep 12, 2022 at 6:54 AM Peter Stephenson < p.w.stephenson@ntlworld.com> wrote: > > I tend to agree with Bart that a change like the above is probably best > in the long run. Directly using zsh's own features inline would be > clearer (given the core audience here is zsh experts anyway). I agree that a zsh-specific solution is best. FWIW, for clarity I would remove the 'langs' assignment entirely and put the entire construct on the 'for' statement: for LANG in en_{US,GB}.{UTF-,utf}8 en.UTF-8 ${(M)$(locale -a 2>/dev/null):#*.(utf8|UTF-8)} ; do --00000000000029deb305e87c8a93 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Sep 12, 2022 at 6:54 AM Peter Stephenson <p.w.stephenson@ntlworld.com> wrote:

I tend to agree with Bart that a change like the above is probably best
in the long run.=C2=A0 Directly using zsh's own features inline would b= e
clearer (given the core audience here is zsh experts anyway).
<= /div>
I agree that a zsh-specific solution = is best.=C2=A0 FWIW, for clarity I would remove the 'langs' assignm= ent entirely and put the entire construct on the 'for' statement:

=C2=A0 for LANG in en_{US,GB}.{UTF-,utf}8 en.UTF-8 $= {(M)$(locale -a 2>/dev/null):#*.(utf8|UTF-8)} ; do
--00000000000029deb305e87c8a93--