99 Bottles of Beer/Shell: Difference between revisions
Content added Content deleted
(→{{header|UNIX Shell}}: The "s=s" assignment is superfluous since the loop ends once s gets emptied.) |
|||
Line 60: | Line 60: | ||
GuiClose: |
GuiClose: |
||
ExitApp</lang> |
ExitApp</lang> |
||
Recursive with slight grammatical variation: |
|||
<lang AutoHotkey>99bottles() |
|||
esc::exitapp |
|||
99bottles(x:=99) { |
|||
ToolTip, % Format("{1:} {2:} of beer on the wall, {1:L} {2:} of beer.{4:}{3:} {2:} of beer on the wall!" |
|||
,(x=0?"No more":x) |
|||
,(x=1?"bottle":"bottles") |
|||
,(x=1?"no more":x=0?99:x-1) |
|||
,(x=0 ?"`nGo to the store and buy some more, ":"`nYou take one down pass it around, ")), 500, 300 |
|||
sleep 99 |
|||
x>0?99bottles(x-1):return |
|||
}</lang> |
|||
=={{header|AutoIt}}== |
=={{header|AutoIt}}== |