99 Bottles of Beer/Shell: Difference between revisions

Content added Content deleted
(moving code from main task-page to sub-page)
m (moving code from main task-page to sub-page)
Line 53: Line 53:
)
)
goto :eof</lang>
goto :eof</lang>

=={{header|friendly interactive shell}}==
<lang fishshell>set i 99
# Assign s to variable $s
set s s
while test $i != 'No more'
echo $i bottle$s of beer on the wall,
echo $i bottle$s of beer.
echo Take one down, pass it around,
set i (math $i - 1)
if test $i -eq 1
set s ""
else if test $i -eq 0
set i 'No more'
end
echo $i bottle$s of beer on the wall.
if test $i != 'No more'
echo
end
end</lang>