will change this in the branch. i wonder why this didnt happen (or got reported) before?

Probably because 1) not that many people build with the primaries in the src tree (there are no dumps in svn, after all)2) many distros (such as Debian on which I used to compile CHDK) use bash (or some other sufficiently extended shell) as /bin/sh by default

here is the port for the ixus40 (sd300) firmware 100k adapted for firmware 100j. additionally it corrects the series-shooting bug (shooting series as well as bracketing now works). setting iso < 58 results in whitescreen + poweroff (take care with the autoiso settings).