Skip to content

Instantly share code, notes, and snippets.

@shinokada
Last active February 12, 2021 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinokada/cfb62197958e0111817ee4afb169f366 to your computer and use it in GitHub Desktop.
Save shinokada/cfb62197958e0111817ee4afb169f366 to your computer and use it in GitHub Desktop.
name sh bash ksh zsh
assign.sh: positional params 99,094 119,629 610,293 244,595
assign.sh: variable 142,299 181,552 732,970 659,868
assign.sh: local var 126,034 180,271 error 679,263
assign.sh: local var (typeset) 134,630 182,005 error 722,624
cmp.sh: [ ] 68,460 95,036 692,007 149,693
cmp.sh: [[ ]] 98,168 144,502 794,564 279,091
cmp.sh: case 117,406 162,791 779,489 285,543
count.sh: posix 104,612 136,671 468,308 525,089
count.sh: typeset -i 92,822 127,923 461,666 524,002
count.sh: increment 106,966 174,247 734,061 741,605
eval.sh: direct assign 69,994 77,121 416,866 74,738
eval.sh: eval assign 41,634 43,582 250,254 60,905
eval.sh: command subs 1,439 1,191 49,520 1,497
func.sh: no func 137,798 179,135 751,555 331,246
func.sh: func 77,182 85,671 436,995 80,314
null.sh: blank error error error 897,556
null.sh: assign variable 144,509 193,644 647,163 728,969
null.sh: define function 155,577 179,681 750,471 547,348
null.sh: undefined variable 107,754 171,975 594,546 318,929
null.sh: : command 138,906 176,191 726,570 322,866
output.sh: echo 92,453 116,126 683,530 236,214
output.sh: printf 92,557 110,709 389,096 222,580
output.sh: print error error 502,755 235,166
subshell.sh: no subshell 131,676 171,043 743,710 330,206
subshell.sh: brace 129,875 161,482 749,236 244,460
subshell.sh: subshell 1,365 1,324 69,636 1,686
subshell.sh: command subs 1,170 860 56,341 1,570
subshell.sh: external command 611 558 568 608
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment