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,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23308 invoked from network); 27 Sep 2021 20:31:30 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Sep 2021 20:31:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1632774689; b=nt2eZzYwY9W3XPSjpVPJRY23A03J0j7S6+yMCjc8SKnrU6LtzLiKkSq+t6uIFr3XHJz8dAP6oW szrd3ssLsBBHZftTVE+O0/GH1ACtNAgHVFzncnUsX1p3F0PxLSDhGFk8/KmP/jUsIJ2o5Ol80z N5EeWeiEdtL7DzTgt/puv4jUydmwbpPhMkMJwzfAKE/oYueRHES/pBIdnKVwC9/1G4XSXPXVIh uA/cBxPcB7JeXy1K7mTuC3frLQ907+FTWJGTAFlIohQ6Umkt1H1mZfaw/vizMBGyQDcgvlNnZ5 /mFMQFf2z1T+u6lhA7KeL6ikg+UC7asUV28+gGBwlxhBeA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-il1-f172.google.com) smtp.remote-ip=209.85.166.172; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1632774689; bh=RDItQkEV/IpFXPAe26DSlszMZiLwrVBtKV7P8TyxrRQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=cx4d6lXejsVOvZFra8NiZNF0T0xAyILLrM/nvvtGN13z/OrW6tHIOgbtEg2U0Bmp4XOlIHk0hz JcUYI/dLw7UamfSWIHzYBcT2srlQBaqcPiEboyBEkEQcmyHw6NahsmfkkGok4bJXuwnGGY0xBT r4FQTb68l8AWLRK9ib6mb3YEPVb7xDtoSn2rsw7EFfxPGMlAxgqBzK9EO+DXpbwZgyMeel1AXN wOYW0eqTnjeGUpNLTO8zUBSxo95jtw2H1avf1OVPpS1UmtoD+evbgTHH3SdR+83P4KE02NnxLA 89rVejGpJHmb7ZNsyqhmPwTVYGLYRRAVp90WtONFvYD+6Q==; 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: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:In-Reply-To:References; bh=RDItQkEV/IpFXPAe26DSlszMZiLwrVBtKV7P8TyxrRQ=; b=dK2N6gM4psvy1Wi8FGGvoclPZ2 5SjnsR8B464eXpckwHikxiM/07Jki4hbu+Jth+S92GYZYBMW07NCMunu/k5Em6d6P3eclkfolPBFi 509pYzdfNaN98IONLxj8VK9kfQrnKNx/Puvs/ZXPX+X1q1uVReg4jh5S2C4AU7SECCeRWi5U+b83V kNVIfJTnN7mQcPH01kPS8I2mDCfmwdNdRNPw1/xt8YqQ0/p5A3RbNTWR7d7KonP57cJuk2ahBNoSy JzX1NLtGZ5dwE12UgyHxL8JmeW/Ijj1+DmXslme4Eg9NNLIdDvmbBB5g0es1NMb1wcnCJZnqXLRWA YEsWdERg==; Received: from authenticated user by zero.zsh.org with local id 1mUxHd-000Lp5-OM; Mon, 27 Sep 2021 20:31:29 +0000 Authentication-Results: zsh.org; iprev=pass (mail-il1-f172.google.com) smtp.remote-ip=209.85.166.172; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-il1-f172.google.com ([209.85.166.172]:45804) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mUxGv-000L7z-Mx; Mon, 27 Sep 2021 20:30:46 +0000 Received: by mail-il1-f172.google.com with SMTP id b8so20673073ilh.12 for ; Mon, 27 Sep 2021 13:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=RDItQkEV/IpFXPAe26DSlszMZiLwrVBtKV7P8TyxrRQ=; b=Avy6J3gtxwr2NTgo0pByimPkjrDCBJZnFDeSiGUph4jwE6+vn8nv9+5OjmIo8cvqE7 0xZb1xiiKuro4EfiWd+h9mWOIdc3l3ijSa08+Lw56MgFg3K9k/9qtcbzWNN/djMc0BP9 f3RkyjCZClq2UDergSWuaO/bpdfzNDwSqVLia9NimjJMSSiV/CTteob4jv8CbtXYHnP5 Wrl0hHL1rege6a34q2Ce5G7hlk/ZOfnjUA3glHbCRGpSPFRBlCtFZUqMWbNcv5Mi8SZf trywHvjkoEOXbe5u8o24OtoQGKdim/Q2O+xHCMIC4s1SUpBp5lSKvByG5V91Ivxv/Xid NyDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RDItQkEV/IpFXPAe26DSlszMZiLwrVBtKV7P8TyxrRQ=; b=4Rle62qLIHj9IKhGfbM7LFmLhnT+JhT1kfHg5kfZD2h70kcNPKV98EZoLzMuVCKkv7 448LAZ0napkjUuoxbQ+tDRB8jphpiHDMFjHCjGJE/++fYfmYjTUY5uym7Sl9sKXzY/34 hiJ50QAyT/+JFTeEAG3V5guNTs//A9sSILBq3+dWbzgWYaZcNbtJaHarT+yW8wOHRoyI JVMMyP51fk8pr5ucEWymqlLhzNoQLjKTCzGQKLCZQxS99TOCiRwIIhhn3OYYUCnr1DVY WP21eDNbbYwsPyIJ3XTsX8rzkx1iZzy6Jp/R57+gAZ84bH6RfswqIcrKETZvFO/NfC9p LYhA== X-Gm-Message-State: AOAM531yfq+28kwewltn+J3F6tO/nQjoMr+HTALBj06b5LJwwqdj4aWK RmFlD4tnMc+VzDXrgs5nqQLeXkLorBn0truWtVCNTDg4xQ8= X-Google-Smtp-Source: ABdhPJzXwF3opOwXdcPPKxr9Ry1RxgUoUU6U1V8ba+Xz9BxzoGRvJNgiepRSRosmYiv4Lzu80AlJzZZvP67pA/veCtE= X-Received: by 2002:a92:cdad:: with SMTP id g13mr1382269ild.103.1632774644221; Mon, 27 Sep 2021 13:30:44 -0700 (PDT) MIME-Version: 1.0 From: Pier Paolo Grassi Date: Mon, 27 Sep 2021 22:30:08 +0200 Message-ID: Subject: less with subprocess To: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000aacbae05ccfff80a" X-Seq: 27142 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: --000000000000aacbae05ccfff80a Content-Type: text/plain; charset="UTF-8" Hello, I have something like this: less -f <(sleep 100) actually the sleep is a find which does not produce any output for a long time at times, but the result is pretty much the same: less doesn't seem to be able to initialize if it doesn't receive an input, so it can't respond to sigint (ctrl-c), and I have to kill it from another shell I use it like this so I am able to use ctrl-c and +F inside less to move around in the output already received and receive the new input received in the meantime (with +F), so I would rather not us something like: sleep 100 | less which doesn't have problems exiting, but when I hit ctrl-c for the first time the pipe is closed and no more input is generated for less thanks Pier Paolo Grassi --000000000000aacbae05ccfff80a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello, I have something like this:

less= -f <(sleep 100)

actually the sleep is a find w= hich does not produce any output for a long time at times, but the result i= s pretty much the same: less doesn't seem to be able to initialize if i= t doesn't receive an input, so it can't respond to sigint (ctrl-c),= and I have to kill it from another shell
I use it like this so I= am able to use ctrl-c and +F inside less to move around in the output alre= ady received and receive the new input received in the meantime (with=C2=A0= +F), so I would rather not us something like:

slee= p 100 | less

which doesn't have problems exiti= ng, but when I hit ctrl-c for the first time the pipe is closed and no more= input is generated for less

thanks

Pier Paolo Grassi
--000000000000aacbae05ccfff80a--