Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{ time dash /dev/fd/9; } 9<<\EOF
#set -x
n=0 max=2000
case $(command -v let) in let) ;; *) let() { while ${2+\:} return "$((! ( ${1:-0} )))"; do shift; done; }; esac
case $(command -v printf) in printf) ;; *) alias printf="echo -n "; esac
alias \
@eval=eval @eval2='eval ' \
@alias=alias @alias2='alias ' \
@echo='echo ' @printf='printf ';
alias \
@n='let "(n += 1) >= max" &&' \
@count='@printf "$n "; @n @alias @count="@printf \$(((n -= 1) + 1))\ ;" @n=; @eval @count @count'
eval @count echo;
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.