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 7256 invoked from network); 29 Sep 2021 14:15:15 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Sep 2021 14:15:15 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1632924915; b=NHT+XI5O2TNql6zDfy1XqJ0wEjyCRgsi0wzbJXOLxd1spnaQ4Ykdk2TEy1QCMRGKMAF7DRT6D3 YU65yPwLnyuu/M7uS2GPWTzD7NnWEaaVLRqEzVKFw+UIFXDlHCwi8uPlHhn/ZWnAy3t7DoHXiB LSF7FlGdyGBtNGdL0E83nMwCgOSoxwIFY8fO9Kby7FB39KpZ6oxHq0bosHCcuj3MPdfYduJZYL r0e+YplIXupsvFT2jAfnXzZlvx+5BqjuZN5mbPDFeTNUgi+zSU3VlvyCZSnhaL0pJyPmSWeOhx 40XWQ5OsucwSDxh5mLk51eC2bfHQUXaXDq/ZCbo4q0honA==; 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=1632924915; bh=nMGmiJv7c3soUdUbDxqB767jEfK7wzIQtN4ZE4CqGQ8=; 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=sQAQqmKHgw5MWWyTPZ0e+pVzEUCYe+5XbYSHYtMeX4XARa8bQAO1hIu2fTgqH1DzCKZWnse0fJ Yff8HCO4QeH2IriOBT3RBqFPpVMAxjpOYOvmK0SrjP6r091LOZK1nMl6bXaKDxMxtOI+wCvm8M Ai8XN0HHhGMwWBUAMxlRh0nDYFXAN0BNo61CsZyCkY0CKVKWzr/vCJ4Gx2u4XJqK9DyOcmErZV OI7EZl3/Ojb/2ppyorSopwS/ny1CTSuoef1/j8nw/hJKXapav8BjGXCCiM8w4W2TtCIaVeq1xr 8fHgXPoXlzUkTr3CapSiD0ErjVAzcKHltLsYB51/rCoPaA==; 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=yPD4SzM4l/1xP7m98aNRqSsmyL1kHA3AIozFrPaZyl0=; b=ngmrkIdHYzopN2nnADeQjaPghw FDhGy/jQLFv7oH9Xcqt7V+mPlLQIE9LpbFY+DX9RmQtgAqqTRJpOWE4GMei5EcFzRshQ+kIVzVlU1 lxiyTlfsZrZ7XbiCmsL9LuI3Wi1wtrzb3j2U6PFbJRXNndqDa0elhdJaKiYb+IlB2uuKVDgRfRNul CBDlIbMr8SuBwQj/nYmtjvnJ3m+Y1vykFogBORX+WgUouFc6t0lmWD26/4fKidsuPENUGtGJr1fAN L1RFxLDBCQwHwyEAGDpg7aW9S3J9DTfPQzmQZWX4M/w6ay+SVlJuHmGNW2f5oPmwZVU6Sc5NK/vx9 YM1ghCOA==; Received: from authenticated user by zero.zsh.org with local id 1mVaMc-000CVm-UW; Wed, 29 Sep 2021 14:15:15 +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]:37560) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mVaLz-000BoR-Sj; Wed, 29 Sep 2021 14:14:37 +0000 Received: by mail-yb1-f169.google.com with SMTP id r4so5679164ybp.4 for ; Wed, 29 Sep 2021 07:14:35 -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=yPD4SzM4l/1xP7m98aNRqSsmyL1kHA3AIozFrPaZyl0=; b=ynBK3Lvl2Bd3ee9+Wef7DeN33/AsmC89AYkuJTtF9nr3Ejv/iR8rnT2EBHlkGqWTRG LLdlwjOPX1PkPmdmfoFburbTXiaxF6chtI9XwxcpzkOkpclfHklgi4kgZW6nGje+Y6Mo aaJjZsJCztM8PiZdjm80XIMipnl0A6BBdm/hh1YSIdwptsC9tMId2bnNs/lnqsLamkPa i/lcX9lwRGg7ThXLIHLQHx2shLm0We9p5C/g1HiYKupcqKpXETg9QPAUbFskJ1Y3oq7N 4cldD4nNyZVEKI+3VNkp8MaODFCjWADkLKeIErVIrbwCxYdvntT91cTSSilFvqqeqxUf MNHA== 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=yPD4SzM4l/1xP7m98aNRqSsmyL1kHA3AIozFrPaZyl0=; b=L7kSQSLa522827iRmnDGEC6KnSqneWM7pIjOzt0emw/TSmCYwIDTWPgAblFRahbrXo mCkYEww4ngzCKgUJn5C8yFjXQCvbmy9OTMaBqxxr2VbBgmeTPw9pVX7cLdARKiaU0tBA i04W2rAzspweR9Q1BCqwCotgDuG0QINLiFIYEiYV3Ao/JB7aN7hWhD7PLI+70rKbVSpq BoMfqqQh7xM0DaznBG4cEvqd/mjFfPANrZKBs2jpznC3+Z0vPMx+QljXYTg47/YT2yQP 9aQduMw5qUs3RCluNQzSf7fQjxGL1qKrH1YKYXamDTJtD/GxBUzMQucFYwHCNU/rqjnX zTPA== X-Gm-Message-State: AOAM531Ry3kalPZ2+Nj/mGUS+bxvsgwNf8RG+R6xPo7jHKqjuM8XcKtZ G3EqTHXv4IpuSwIbQ6tsQ3v9L/dia6p0ChhYh7Rj4/NLqeMRYA== X-Google-Smtp-Source: ABdhPJyUM1DXXZ2hgYWo42DmvbvhH92urjYdMtypg/90qYgxuersEln56S8Bt8aoeU2S+q/JFZyaAStlZeF07zNlKoE= X-Received: by 2002:a25:6504:: with SMTP id z4mr15045ybb.365.1632924874651; Wed, 29 Sep 2021 07:14:34 -0700 (PDT) MIME-Version: 1.0 References: <20210927233143.GA16620@gmx.de> <20210928185230.GA7495@gmx.de> <20210929130217.GB25513@cventin.lip.ens-lyon.fr> In-Reply-To: <20210929130217.GB25513@cventin.lip.ens-lyon.fr> From: Bart Schaefer Date: Wed, 29 Sep 2021 07:14:23 -0700 Message-ID: Subject: Re: less with subprocess To: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27179 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 Wed, Sep 29, 2021 at 6:02 AM Vincent Lefevre wrote: > > cventin% LF () { () { cat >$1 &! less $1 ; kill $! } =(:) } > cventin% echo | LF > (anon):kill: kill 27684 failed: no such process Yeah, if you use it with a process that produces very little output, the kill will fail. But there's no point in using it in that case. Redirect stderr of kill if this bothers you. > And > > cventin% (sleep 1; echo foo) | LF > > gives an empty file in "less" Yes, you have to hit "F" in less to reload / wait for the file contents. I suppose "less +F" might be preferable. There are still some signal handling issues with having a subshell on the left side of the pipe, which might very well indicate that there is still a zsh (or "less"?) bug with signal propagation.