* repeat indefinitely?
@ 2008-10-22 18:34 sam reckoner
2008-10-22 18:40 ` Mikael Magnusson
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: sam reckoner @ 2008-10-22 18:34 UTC (permalink / raw)
To: zsh-users
instead of:
% repeat 1000;do; something; done
is it possible to do
% repeat Infinity; do ; something; done
and then kill it with Ctrl+C or something?
thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: repeat indefinitely?
2008-10-22 18:34 repeat indefinitely? sam reckoner
@ 2008-10-22 18:40 ` Mikael Magnusson
2008-10-22 18:41 ` Ali Polatel
2008-10-22 20:55 ` Atom Smasher
2 siblings, 0 replies; 4+ messages in thread
From: Mikael Magnusson @ 2008-10-22 18:40 UTC (permalink / raw)
To: sam reckoner; +Cc: zsh-users
2008/10/22 sam reckoner <sam.reckoner@gmail.com>:
> instead of:
>
> % repeat 1000;do; something; done
>
> is it possible to do
while true; do something; done
> and then kill it with Ctrl+C or something?
>
> thanks.
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: repeat indefinitely?
2008-10-22 18:34 repeat indefinitely? sam reckoner
2008-10-22 18:40 ` Mikael Magnusson
@ 2008-10-22 18:41 ` Ali Polatel
2008-10-22 20:55 ` Atom Smasher
2 siblings, 0 replies; 4+ messages in thread
From: Ali Polatel @ 2008-10-22 18:41 UTC (permalink / raw)
To: sam reckoner; +Cc: zsh-users
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
sam reckoner yazmış:
> instead of:
>
> % repeat 1000;do; something; done
>
> is it possible to do
>
> % repeat Infinity; do ; something; done
>
> and then kill it with Ctrl+C or something?
>
> thanks.
>
while true; do ; something; done
--
Regards,
Ali Polatel
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: repeat indefinitely?
2008-10-22 18:34 repeat indefinitely? sam reckoner
2008-10-22 18:40 ` Mikael Magnusson
2008-10-22 18:41 ` Ali Polatel
@ 2008-10-22 20:55 ` Atom Smasher
2 siblings, 0 replies; 4+ messages in thread
From: Atom Smasher @ 2008-10-22 20:55 UTC (permalink / raw)
To: zsh-users
On Wed, 22 Oct 2008, sam reckoner wrote:
> is it possible to do
>
> % repeat Infinity; do ; something; done
>
> and then kill it with Ctrl+C or something?
==================
while :
do
stuff
done
you may have to hold ^C until you kill the wile-loop, not just the stuff
in that iteration of the loop.
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"We must have strong minds, ready to accept facts as they are."
-- President Harry Truman
"I don't care what the facts are."
-- President George H.W. Bush, 1988
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-10-22 22:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-22 18:34 repeat indefinitely? sam reckoner
2008-10-22 18:40 ` Mikael Magnusson
2008-10-22 18:41 ` Ali Polatel
2008-10-22 20:55 ` Atom Smasher
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).