#!/bin/sh set -o nounset -o errexit -o xtrace fib()( echo h ) readonly stack_count=${1-0} test 0 -eq $stack_count || echo $stack_count test 1 -eq $stack_count && $0 $(($stack_count + 1)) time $0 1