99 Bottles of Beer/Shell: Difference between revisions
Content added Content deleted
Simple9371 (talk | contribs) (→{{header|AutoIt}}: Removed extra spaces) |
(→{{header|UNIX Shell}}: The "s=s" assignment is superfluous since the loop ends once s gets emptied.) |
||
Line 250: | Line 250: | ||
# POSIX allows for $(( i - 1 )) but some older Unices didn't have that |
# POSIX allows for $(( i - 1 )) but some older Unices didn't have that |
||
i=`expr $i - 1` |
i=`expr $i - 1` |
||
[ $i -eq 1 ] && s= |
[ $i -eq 1 ] && s= |
||
echo "$i bottle$s of beer on the wall |
echo "$i bottle$s of beer on the wall |
||
" |
" |