Thanks for your answer.
> I assume you know that the speed issues most likely come from the
> operating system's supporting functions like the fork() and exec*()
> family members?
How does it explain the speed difference between "echo `dircolors`"
and "dircolors" ?
> > I don't know much about bash internals, but there is probably room for
> > a huge performance improvement in speeding up the eval builtin.
> > What do you think about it? Would it be a difficult task?
>
> It is more likely to be the command substitution that is slow.
You're right:
$ tim
Hi,
Bash starts slowly on my 600 Mhz computer (.62 seconds). I wanted to
understand why, and here is what I found:
$ time eval `dircolors`
real0m0.325s
user0m0.316s
sys 0m0.004s
I wanted to know what is so slow in the previous command, so here is
another test:
$ time (dircolors > di