[recursive.sh]: add recursive.sh
A script that calls itself
This commit is contained in:
6
recursive.sh
Executable file
6
recursive.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# A script that calls itself
|
||||
|
||||
recursion_count=${1:-0}
|
||||
echo "Recursion number $recursion_count"
|
||||
$0 $((recursion_count + 1))
|
Reference in New Issue
Block a user