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, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22759 invoked from network); 1 Oct 2021 16:45:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Oct 2021 16:45:55 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1633106755; b=WnBZwsCihIRN9Cw56AYEs4R4P6UkhDsdt2VIge9rspRARbdd/3jVcRHfB8X3sUclKQW7u6+y03 nl5MeqLg6V7cp6LteYBw8sUfmsaZ6lb+pIkieNU+6UgGijm2TuRqn0C1GMMe1rpnDd3JUYCiWO IBFSseY390e9XEWu3MGjylX3xyplMqLf+raK5IH/qxGGgosv2lzbmskjSBdg0hHs8qt4lx88wR PfD99/PWTxWfLd87dZmsDP6cyZukZqN21aEbN0RatWjumkQvKYVhj/3SpqwXZiujxd2YRVxOuz patRInenT25uiJz0OvkA5SumDOJWOXtfGbPUJLVV6VVQMA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f169.google.com) smtp.remote-ip=209.85.219.169; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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=1633106755; bh=J5NyIZQqNCovbEccmQt2wjnGp+rRGWXynGrNJlB12TA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=MDl4T4onNyneDTJnEoLIFK+CF3M5rKKE19X0WQUs6V7uUHW6b4l/GDMrwHT6iJWsorwV6KEfCW WH90A3Ue5S8ZeL6yqXTMemHt3Hp0OCedlEgkXg/nOwnIzC2imjDsjdsKO5bs0APz/N83CJSE+X ZDRy8YvzYfuYBhIPC0AxjCavCssyrhrTuTrsH5FKdsYyWY9Djeq52ZJuCIEdM2ndTlIDEsg6+1 0zgPJpVjTXSfqJzZC0KYzJI+ZG3a8JRGBPg9M0n5aEUscEeGlyPqzgtFHiJgUuPO6Z5kIo0nHI Qq4jzTcX8Q+uImaQq9fam6ncrhZm+ojU+d+RSqMsb4MepA==; 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:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=hc53B+eJQtTp1ogk5hRrS7cdnijTTaieeRSo8pPOOqY=; b=dp2OFemEJ/5zgPnGitBcsHS5CX w28KAl47Ri/9omOYYQUW86Gxvy3LXhRmPAxUEZ3iJFBOb8+Drgpc8cdvJ7cPZFiIXjZfmtUW1Wct3 HalqjB18blJbjGYkBy2lthSMdXxu1wRLW71HAPsiU5xONhjUq6abmuYbiiAz2jEhEtnVz6cbo0B6t xtxY8YtEnEMXbGLeFdLErb/z933YMqSOaCIfRwGdciQAHdF5a7OHhrTz8jgM2LlWXqLiNelz94NuF 37RDQZ1NQVz1Hy/tBNYX6pLOsPBwfZM1VUNmizc3ZvCyg/D/4+BO2L7ElxLXo1/BLYdMf+GsLKDD/ 6dqNaDQQ==; Received: from authenticated user by zero.zsh.org with local id 1mWLfV-0007aa-Oo; Fri, 01 Oct 2021 16:45:53 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f169.google.com) smtp.remote-ip=209.85.219.169; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f169.google.com ([209.85.219.169]:38579) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mWLer-0006sP-Hk; Fri, 01 Oct 2021 16:45:14 +0000 Received: by mail-yb1-f169.google.com with SMTP id d131so4575170ybd.5 for ; Fri, 01 Oct 2021 09:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=hc53B+eJQtTp1ogk5hRrS7cdnijTTaieeRSo8pPOOqY=; b=KehvZpF/Ubs4t6IwLW3lk7hinnVuQV3rMvTaS6Zihwb2hHIJJdtwCL26q49G6L28ay iAYxWF5SVFTiUZmOu8WvSuYPD7ibj+PMEOB9C7fvLoqbBTsOuUMOD2Amy3fglgNhbdKp d5C4M9eIsajBhcC4dMedlSMDi3LPOYQ7TvUy3xWjh/PfuArD8vkNGPlNd+1sCuVXMyD6 X0H+Vgo+ArwU1S2L3j1Kc4ko1jemoahXghcQ0lmhCDbQkRFBzSyFCM9g7zluCInGXD2V z0zpDBwlyCPRChhINf7yTCcxtZiOA8T+PeocsXdfyB5yS4yeCQWg6gmO64+DBgUF4wKs Kg6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=hc53B+eJQtTp1ogk5hRrS7cdnijTTaieeRSo8pPOOqY=; b=7zdouC7Uwh7/yJkOTlmG6xZLqavSINOqEatkI4FYrpAdGpMA+GnnyLfKOOdLWOEc2T wbReNGf3SR2yP7KsG0wbuTUXkJjBvKivcYooP5aWTwAUe/TgM+/5xRmvudd/jYj/opiS y68xZuZTGEqZISxNKneUAqrOEZB0/kiooac6ELtscrw6uE2HaOy7HKs+6tWHE0JicWel 6WSXEIu4NdbfkGxkYgVgIblhDgYiRiXaVySBA+dAOI17AuDSO+ZOUESGu6TOaZ0Wc4T3 IscMSf0IsJy/s3qAYZyA12r8U/odtvbnTgvzriwmFJhPzveW/DW7dXZNrKGny+FKo977 meSA== X-Gm-Message-State: AOAM533IC5EaLTIwtsxfvyrqWHSbrNqfC+FChPp7cv43uAnJ+0Jwxcyb NL1fdffCXFXrYgTkIdDC27ScsucrlvlHFMlej/bJKGlgWCoofA== X-Google-Smtp-Source: ABdhPJzeZa4Dsz9CBgMChYPsoGa4R8ChEo1Yd0/kew3myobSkq2t/UWfI9lPGZDrwlYuZKuXKGCqY5Dr405qWCdldoQ= X-Received: by 2002:a25:ba08:: with SMTP id t8mr7267045ybg.111.1633106711258; Fri, 01 Oct 2021 09:45:11 -0700 (PDT) MIME-Version: 1.0 References: <20210927233143.GA16620@gmx.de> <20210928185230.GA7495@gmx.de> <20210929130217.GB25513@cventin.lip.ens-lyon.fr> <20210930192211.GB1641202@zira.vinc17.org> In-Reply-To: <20210930192211.GB1641202@zira.vinc17.org> From: Bart Schaefer Date: Fri, 1 Oct 2021 09:44:59 -0700 Message-ID: Subject: Re: less with subprocess To: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27202 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: On Thu, Sep 30, 2021 at 12:22 PM Vincent Lefevre wrote: > > On 2021-09-29 10:56:30 -0700, Bart Schaefer wrote: > > On Wed, Sep 29, 2021 at 7:47 AM Pier Paolo Grassi wrote: > > > > > > LF () { () { cat >|$1 &! less $1 ; kill $! } =(:) } > > LF <<(find) > > This is much worse! Ctrl-C then [End] yields > > zsh: suspended (tty input) > > then "fg" makes the terminal unusable. This doesn't happen to me with the current zsh head revision from git. I do get the "suspended (tty input)" but "fg" just brings back "less" ... and the behavior is a bit different (although I'm not sure if consistently so) when the process substitution uses 2>/dev/null or 2>&1 This does seem to have something to do with your suggested patch to "less".