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 16478 invoked from network); 3 Oct 2021 01:47:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Oct 2021 01:47:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1633225640; b=U7ytAk6XP6lG7zzHhyDFEW1ElvlF7yUdmbBHhOEqyx/XmSkPB3wwbW9yCdhJTVvBD7dAPUCVWq cdq1VUZABmjauX696XdWiaNS7AjzoGsw3P7XvureI3O2lMs5ogPfkvyc4eH+xd4gdnhWDyxDQT 83zfoD+z7WD1/E/4yNUJZRsoBwCrrStZieN2T2elEYADC4T6qEy2Z/LJEj7GERqNKiqCGQ+ujp Q9YXUWdreyTK9HUdG7fGOef20uRhpEnx4VBubY5F9zPRrReA9A3utzPYrK5aYHpnSHNF1UFhwE zMt8ERrCexEOBPUtBFpFKbdV7OEs6nObm0O44HJU+TMlYA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1633225640; bh=0zbAU+hId8K5gPik2GQzTr9/PPT5tc+LBQ3I6c3QGB8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=hm6oG1QaxCA+vIhbvvHfLCRqa47aaW5hwKUdUusy3a1IJL8vktm1sGR1m64fRm7IcSjM4FOc8e 568ealXTqvc55nUSP7ygmi0VyXYjzo8EzDIzJA1B1BKJxbB0+CvYLb+4YRjNKxOJHemaWfMAmC FHWc8EadMu/vzGJJmgwOhwYZbB82mAHkyFNjRLGIUdBFLFIXFB3SCttEgdQ0AtABGfhYdtktl+ R6VkIsjtAK/UazzOHOqMenSFLo4LncSXz3Wqxhy0CyRVGZ1O2SiwZb/c2i40TW8BHu3bjR3M6o 1996f0l2l0stnmfkOg10dMtmdVE9GkOvOcENDXKaHRXvwg==; 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:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=xHWWVHx5sksyjEBqnYp4VriydrCA944b9gq0rA+GSbg=; b=eVsTPy1X1Ru6G4oUleD0owWR79 5qj0ggPu7hXsKubYiLoNQHdn68YwG7AbjLKe675Yop8Juq4AGWtv1fyMj1bIoR7esFKCHENGeKFyb RrLXl70NWBKeAW8SHt/HhTA2JSWmIM+G9HNax82rPb067pPYfkFLhwpKUPhfvu+1vr3tPUrTalC0H EFwvdCRsYHi4UDYL18FYpzXsEVHcs2xEjyXRO0cPf3RMB6QLpiUJOghjw/MQx8lKg65QYTYWwjyYs PiCGrxQIRY/2nyM3Ca4E66KV7xn32RN/XLCtlnlhG5ZkZ/P1rIKiM1zzo/QBBpTGtBtPQvSst7UEJ uEpKrGBg==; Received: from authenticated user by zero.zsh.org with local id 1mWqb0-0004V0-T2; Sun, 03 Oct 2021 01:47:18 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:37632) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mWqZW-0003lB-I6; Sun, 03 Oct 2021 01:45:47 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id BCF5A1B2; Sun, 3 Oct 2021 03:45:45 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 87F63C20960; Sun, 3 Oct 2021 03:45:44 +0200 (CEST) Date: Sun, 3 Oct 2021 03:45:44 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: less with subprocess Message-ID: <20211003014544.GA314745@zira.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <20210928185230.GA7495@gmx.de> <20210929130217.GB25513@cventin.lip.ens-lyon.fr> <20210930192211.GB1641202@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.1.3+69 (769e5086) vl-138565 (2021-09-25) X-Seq: 27219 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 2021-10-01 09:44:59 -0700, Bart Schaefer wrote: > 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". The version of "less" I was testing didn't have my suggested patch (it has two other patches, but unrelated to signal handling). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)