Anonymous user
Loops/Infinite: Difference between revisions
→{{header|UNIX Shell}}: Add more shells.
m (→{{header|Joy}}) |
(→{{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>
<lang bash>while true; do echo "SPAM"; done</lang>
<lang bash>until false; do echo "SPAM"; done</lang>
{{works with|
{{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}}==
|