Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: strange interaction between read command and pipe to less from function



On Sun, Mar 26, 2023 at 5:28 PM Jim <linux.tech.guy@xxxxxxxxx> 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.




Messages sorted by: Reverse Date, Date, Thread, Author