Language Z-Shell
(Fixed)
| Date: | 02/15/06 |
| Author: | Chris Johnson |
| URL: | n/a |
| Comments: | 0 |
| Info: | http://www.zsh.org |
| Score: |
!/usr/bin/env zsh
alias print_strophe='echo "$beer bottle$s of beer on the wall,"
echo "$beer bottle$s of beer,"
echo "take one down, pass it around,"
let beer="$beer - 1"
if [ "$beer" -eq "1" ]
then
unset s
fi
if [ "$beer" -eq "0" ]
then
beer="No"
s="s"
fi
echo "$beer bottle$s of beer on the wall."
echo'
beer=99
s="s"
while [ "$beer" != "No" ]
do
print_strophe
done
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments