zsh-users
 help / color / mirror / code / Atom feed
* read -u 0 -k 1 does not work as advertised.
       [not found] <1885158736.4353982.1659220090997.ref@mail.yahoo.com>
@ 2022-07-30 22:28 ` johnnonedoe
  0 siblings, 0 replies; only message in thread
From: johnnonedoe @ 2022-07-30 22:28 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 604 bytes --]

As illustrated below:
◼︎◼︎▶︎ which g1 g2                       

g1 () {

 REPLY=timeout 

 read -t 5 -k 1

 echo REPLY=$REPLY

}

g2 () {

 REPLY=timeout 

 read -u 0 -t 5 -k 1

 echo REPLY=$REPLY

}

◼︎◼︎▶︎ g1         # no return                          

aaREPLY=a

◼︎◼︎▶︎ g2                                   

asdf           # return

REPLY=a

◼︎◼︎▶︎ sdf                                

zsh: command not found: sdf


johnnonedoe@aol.com

[-- Attachment #2: Type: text/html, Size: 7554 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-30 22:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1885158736.4353982.1659220090997.ref@mail.yahoo.com>
2022-07-30 22:28 ` read -u 0 -k 1 does not work as advertised johnnonedoe

Code repositories for project(s) associated with this 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).