> > But because zsh is much slower than bash... > > This isn't a fair summary of your benchmark. It would be more accurate > to say that zsh on some systems may take up to twice as long as bash > to execute an empty script. The slow startup is sufficient to deter me from using it as bash can satisfy most of my usage. Although zsh has certain features that bash has, I don’t want to trade-off the 2x startup time difference for those features. I only care about the Unix variants but not Windows. My test is on Mac via homebrew installations. I don’t think that there will be too much difference in Linux. But I don’t have a native Linux machine to test. Whoever has access to a native Linux machine may post the runtime here for comparison of different OSes. > Only if it is faster than bash, I may consider using it. > > Could you share some details of your environment in which the overhead > of 6.7 ms per script is OK but 12 ms is not? > > When running a script interactively, this difference shouldn't matter. I build a library that one causes another. In such cases, the startup time matters, as most of scripts don’t take a long time to run, I don’t want the startup eat up too much time. I know I can use ‘source’ circumvent this problem to a certain extent. But having a shorter startup time is still a good thing. If bash can do it, I don’t think zsh is absolutely unable to do it. -- Regards, Peng