mirror of https://github.com/tLDP/LDP
28 lines
396 B
Bash
28 lines
396 B
Bash
#!/bin/bash
|
|
# recursion-def.sh
|
|
# A script that defines "recursion" in a rather graphic way.
|
|
|
|
RECURSIONS=10
|
|
r_count=0
|
|
sp=" "
|
|
|
|
define_recursion ()
|
|
{
|
|
((r_count++))
|
|
sp="$sp"" "
|
|
echo -n "$sp"
|
|
echo "\"The act of recurring ... \"" # Per 1913 Webster's dictionary.
|
|
|
|
while [ $r_count -le $RECURSIONS ]
|
|
do
|
|
define_recursion
|
|
done
|
|
}
|
|
|
|
echo
|
|
echo "Recursion: "
|
|
define_recursion
|
|
echo
|
|
|
|
exit $?
|