Felipe Contreras <felipe.contreras@xxxxxxxxx> writes: >> While these patches may make it "work" with zsh in its native mode, >> because zsh that is running in its native mode is sufficiently >> distant from the more POSIXy portable variants of Bourne shells like >> dash and bash, I find it hard to justify the cost of maintaining the >> resulting codebase to "work" that way. > > Why do we follow POSIX anyway? It is not what we follow that is at the primary issue. The criteria is more about what our developers are expected to be familiar with, and what is reasonable to force our developers to become sufficiently familiar with. Even among POSIXy Bourne variants, dash being stricter than bash already gives some new folks, who only know bash, things to learn to avoid. But at least what they learn through such an effort would help them write more portable scripts. It is my impression, however, that zsh in its native mode is even further out and away, pushing it on the other side of the line of being reasonable to force our develoerps to adjust to. What they will learn through such an effort would be more of "what to do when you are forced to use zsh" than "how to write your shell script portably". > In truth all the patches regarding shell portability have been along > the lines of: "this code makes $x shell work, doesn't break other > shells, and isn't against POSIX". In some cases even when the Austin > group disagreed on what POSIX actually said, we did whatever worked in > most shells. One aspect that is missing in the above is the extra burden on our developers. > Is there some sort of predisposition against zsh? There isn't. If somebody makes the tests to also work with csh or /bin/sh on SunOS, I would pretty much say the same thing. The end-result may work perfectly well, but the cost to maintain it working over the long haul may be too high for our developers.