| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # recursion-def.sh |
| 3 | # A script that defines "recursion" in a rather graphic way. |
| 4 | |
| 5 | RECURSIONS=10 |
| 6 | r_count=0 |
| 7 | sp=" " |
| 8 | |
| 9 | define_recursionscip-shell shell abs-guide 10-4 define_recursion(). () |
| 10 | { |
| 11 | ((r_count++)) |
| 12 | sp="$sp"" " |
| 13 | echoscip-shell system . . echo. -n "$sp" |
| 14 | echoscip-shell system . . echo. "\"The act of recurring ... \"" # Per 1913 Webster's dictionary. |
| 15 | |
| 16 | while [scip-shell system . . `[`. $r_count -le $RECURSIONS ] |
| 17 | do |
| 18 | define_recursionscip-shell shell abs-guide 10-4 define_recursion(). |
| 19 | done |
| 20 | } |
| 21 | |
| 22 | echoscip-shell system . . echo. |
| 23 | echoscip-shell system . . echo. "Recursion: " |
| 24 | define_recursionscip-shell shell abs-guide 10-4 define_recursion(). |
| 25 | echoscip-shell system . . echo. |
| 26 | |
| 27 | exit $? |