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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26623 invoked from network); 25 Jan 2021 15:55:58 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Jan 2021 15:55:58 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1611590158; b=yKjCAN1gTynhxGsAsvQDhTZ6jGMq6ItdvwfGV7JAjLEqDXJ/bMOUpEfY1G/9OWozDpzoJzL+fD jshlGYvmB/w60N9xJS8SkKjeiUJQjXF9epqM8CAGLvRlk4hMEeUp7h5tKxxvkxa0HEcN8c5lnQ ciHGPUf2eSJRLNoAhzpQuHBTlPuaBYB4sEWufNMzrsr8aKQ9JEtvh2FAa4YBxB4ZsJEdQUZyyt Emysq0qPRxwJPzqm2PJTLnv6xqxFQNMxB2ypi3fzM8wxpWkyFd1fTxc1SBsUS+t5Vp7bPECp4Y /V5d9M/ALLAAluMQTRy0sOJXj8KKGPhBjOqXXRWfC4vx5g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f45.google.com) smtp.remote-ip=209.85.208.45; dmarc=none header.from=alumni.princeton.edu; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1611590158; bh=77BURerXnx+UYfgptakDiCMXWu2OIpvBUsQ07wUUpkY=; 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; b=y16hR36Fk+qY5TuXr+SxEk/hpurN+82haODmR1TJ+WJ6xPx5gSUMRaWXI9goynUU0tMIh2xIuF uapl315agTQ0w+FbK+1+67AeR7/PnYrVZVCWi5CXXEJB2MDiOJiQE0jZr/xhTiSXtrW3034j+I 3GvTmoZMcQgQROIoONk183qdG78rp9r5RE1O3OxmrauqiBWKL2ilUvwzSOEsq3zf6qCGnUllnh p6ZxHa5Si9ppjY6JcXLIo2YcgHy5d+7pVxrRwkky87jFQP8jhf+r4ApYipK3eSon5Va+eyDSa1 qdnF2/mZEmJ8lgbPe+0uGe2uXpFOc7vXg9M0qYhdK27TgQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; 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=SOGGDBkT6vPf50i2sRsCvePdiRi8asDi51qwkG1AoIw=; b=HXDUj3JPgAKPd6xLAzCIX2+zLA lVEtu+32ogSuX/XYPhJ+cEdwu3vXFzR5mK88A+AeZHIYlo5AFYMJu5xMdv5HtxfuAJuJomEKRm1pw jncm87A0+O0mEvXhX8uQZxFWPtuNtshCzCkSC+b7f1YTZrYKI75wZgii2XYNfTExnpddIhi3ldVMc 1yOMt3SpGtt3LK1yqdpcyfzcq4bUZRLZLxDtt0JNxbHhf09MzWgy8IqCRkHSIzwrugqgQXPx6TNPG wRIOlcYJnz8sIKbKZiQDVJUmH3LfW2YVaMvqoTGfXD1Gtr2gb8wXceeHYDe+Frxs2jrZU/JO6/JHe y4xw7OGA==; Received: from authenticated user by zero.zsh.org with local id 1l44Dc-000JwP-IK; Mon, 25 Jan 2021 15:55:56 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f45.google.com) smtp.remote-ip=209.85.208.45; dmarc=none header.from=alumni.princeton.edu; arc=none Received: from mail-ed1-f45.google.com ([209.85.208.45]:36470) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l44D7-000JZ2-3s; Mon, 25 Jan 2021 15:55:26 +0000 Received: by mail-ed1-f45.google.com with SMTP id d2so12407276edz.3 for ; Mon, 25 Jan 2021 07:55:25 -0800 (PST) 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; bh=SOGGDBkT6vPf50i2sRsCvePdiRi8asDi51qwkG1AoIw=; b=fJcpx4M92viELbl7oRiH5YWq4q90u7eVNeuCGbXyYxf1KZkx12qPel0jeuvGr+1Dzy TMlvxBLyBz3ztihA4TMhyGeaTWWtVxo6kqGBGh+7L/R4UHE5N7PXJ1t4jungpUY0EbIe LyK+CQ9iLsGyvCeF8fwxOCgvZiU9SuPb7YUY9b2T0+td4Iz5aKChmccnwkOJh6LDhLxK 0WzjKgvNvrGVcYXokOTS/7U6Lx605/9eGKvmYCUkQZhSjQ+yLtWT/YBFQnkYdg5SklzV X/WDfEcFg4uHaK+BxXod3BdsV9OKDi5zMvQVB24j8ocVQ+QlZ3UKK9ox7yH3ZvLglpBr MGgQ== X-Gm-Message-State: AOAM530lxUZ34FvxkDEY2NL70wGjNROeYEGG9AOvHV61AHD9cAMajoo6 E4UGBPsuWzsTs9xx2IivZ32gmLnbCN09aKAmVkYtBd1iDyU= X-Google-Smtp-Source: ABdhPJxkaG0D/XyqnaNbgtXbDOduQOCUqikE8KfL0KiviOoPiDgrukCkMVkI5XPhwUH3Yfhz2zM5opL/xV7VVPstoGo= X-Received: by 2002:aa7:d5d5:: with SMTP id d21mr1026832eds.252.1611590124712; Mon, 25 Jan 2021 07:55:24 -0800 (PST) MIME-Version: 1.0 References: <1eb9835c-3911-d4ea-6456-d9ad52ceffea@eastlink.ca> <20210124194750.dtyacd5emjauwxec@sym.noone.org> <38504cf6-a3c0-eb22-8a0b-6410d27ebbbc@eastlink.ca> In-Reply-To: <38504cf6-a3c0-eb22-8a0b-6410d27ebbbc@eastlink.ca> From: Vin Shelton Date: Mon, 25 Jan 2021 10:51:39 -0500 Message-ID: Subject: Re: capture stderr in command substitution To: Ray Andrews Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000e837f805b9bb907b" X-Seq: 26415 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --000000000000e837f805b9bb907b Content-Type: text/plain; charset="UTF-8" > how do you keep a command out of history? You can setopt HIST_IGNORE_SPACE (capitalization and underscores don't matter) and put a space in front of the command. Regards, Vin --000000000000e837f805b9bb907b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> how do you keep a comm= and out of history?

You can

setopt HIST_IGNORE_SPACE

(capitalization and underscores don't m= atter) and put a space in front of the command.

Regards,
=C2=A0 Vin

--000000000000e837f805b9bb907b--