On 07/06/2018 10:10 AM, Ralph Corderoy wrote:
Hi Grant,
Hi Ralph,
Like Ted, I favour sh over bash for scripts when
possible, and was just
chipping in to help increase sh's number. :-)
To each his / her own preferences.
I do like the feedback and exposure to alternative solutions.
$ strace -c dash -c : |& sed -n
'1p;$p'
% time seconds usecs/call calls errors syscall
100.00 0.000883 35 1 total
$ strace -c bash -c : |& sed -n '1p;$p'
% time seconds usecs/call calls errors syscall
100.00 0.002943 145 8 total
I like the info.
I'm not at all surprised that dash has fewer calls than bash.
$ strace -c zsh -c : |& sed -n '1p;$p'
% time seconds usecs/call calls errors syscall
100.00 0.000017 271 15 total
Oh my. Zsh is even fatter (call heavy) than Bash.
--
Grant. . . .
unix || die