[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read -e -i text <<<b r ; pruntf %s "$r" == b not textb , why
From: |
Chet Ramey |
Subject: |
Re: read -e -i text <<<b r ; pruntf %s "$r" == b not textb , why |
Date: |
Tue, 1 Jun 2021 11:55:29 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 |
On 6/1/21 11:49 AM, Alex fxmbsw7 Ratchev wrote:
would some </dev/tty magic do ?
Try it and see. It varies between systems. A file descriptor open to the
character special device /dev/tty may or may not return true from isatty().
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/