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

Re: Sleep: was Re: Lonely spacecowboy




----- Original Message ----- From: "Peter Stephenson" <pws@xxxxxxx>
To: <zsh-users@xxxxxxxxxx>
Sent: Thursday, March 29, 2007 5:28 AM
Subject: Sleep: was Re: Lonely spacecowboy


"Brian K. White" wrote:
Veering off topic, though still topical in so far as it's about zsh: One
feature I do miss isn't there in the current version either. Only real ksh
has, as far as I've been able to tell even today, built-in sleep that
accepts less than one second values.

You can do this (works OK on Cygwin):

 zmodload -i zsh/zselect
 zselect -t 10

The time is in 100ths of a second, because I didn't use floating point
numbers (I would have if I was doing it now).  Also, the status returned
is 1 whether or not it was interrupted (because it's really a timeout),
so this is a little inconvenient.

Wow sweet! Thanks.

Brian K. White    brian@xxxxxxxxx    http://www.myspace.com/KEYofR
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro  BBx    Linux  SCO  FreeBSD    #callahans  Satriani  Filk!




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