* Ralf Wildenhues wrote on Sat, Jun 23, 2007 at 03:18:49PM CEST: > + IFS=: > + for d in $PATH:; do
This isn't reliable either: bash 3.1.17 and ksh do this: $ ( d=:a:b:; IFS=:; for i in $d ; do echo .$i. ; done ) .. .a. .b. but pdksh does this: $ ( d=:a:b:; IFS=:; for i in $d ; do echo .$i. ; done ) .. .a. .b. .. So effectively the above starts adding '.' in $PATH for pdksh. Similar for zsh. And I've only tested on GNU/Linux so far. Yucc. This is uglier than I thought, adding in that I think SUSv3 wording is saying that pdksh is right and bash is wrong. :-/ Cheers, Ralf