From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: linuxtechguy@gmail.com
Cc: zsh <zsh-users@zsh.org>
Subject: Re: strange interaction between read command and pipe to less from function
Date: Sun, 26 Mar 2023 17:49:36 +0200 [thread overview]
Message-ID: <CAN=4vMrR2fYk2A0wicn5Fq+LcJdsF=aQ2_t--voFyMeWOK=Vog@mail.gmail.com> (raw)
In-Reply-To: <CA+rB6GKWVJ2C1pxzykWHMT-GzmcSo0GzBmS0TSAe2PpnOvGxww@mail.gmail.com>
On Sun, Mar 26, 2023 at 5:28 PM Jim <linux.tech.guy@gmail.com> wrote:
>
> cvt_256_colors_2_rgb_hex_fmt | less
In this command both cvt_256_colors_2_rgb_hex_fmt and less are going
to read and write to the same TTY. This won't do anything useful.
Perhaps you don't realize that your `read` command reads and writes to
the TTY? What do you expect from running it simultaneously with less?
Roman.
next prev parent reply other threads:[~2023-03-26 15:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-26 14:33 Jim
2023-03-26 14:55 ` Roman Perepelitsa
2023-03-26 15:28 ` Jim
2023-03-26 15:49 ` Roman Perepelitsa [this message]
2023-03-26 17:04 ` Jim
2023-03-26 17:23 ` Roman Perepelitsa
2023-03-26 23:50 ` Lawrence Velázquez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN=4vMrR2fYk2A0wicn5Fq+LcJdsF=aQ2_t--voFyMeWOK=Vog@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=linuxtechguy@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).