Jump to content

Loops/Infinite: Difference between revisions

→‎{{header|UNIX Shell}}: Add more shells.
(→‎{{header|UNIX Shell}}: Add more shells.)
Line 750:
=={{header|UNIX Shell}}==
{{works with|Bourne Shell}}
 
Use any of these loops:
<lang bash>while :; do echo SPAM; done</lang>
 
or
 
<lang bash>while true; do echo "SPAM"; done</lang>
 
or
 
<lang bash>until false; do echo "SPAM"; done</lang>
 
{{works with|Bourne Again SHellbash}}
{{works with|ksh93}}
{{works with|zsh}}
 
<lang bash>for ((;;)); do echo "SPAM"; done</lang>
Line 768:
echo SPAM
end</lang>
 
==={{header|es}}===
<lang es>forever {echo SPAM}</lang>
 
=={{header|UnixPipes}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.