mail/automx still contained bash-only code: string expansion with search and replace is not supported by vanilla sh. Fixed by using sed (patch attached).
Created attachment 164895 [details] replace bash-ism by use of sed. replace bash-ism by use of sed in automx-test.
Nice, but doesn't ${AUTODISC##* } do the same? Chris
Created attachment 164901 [details] replace bash-ism. Indeed, it does! Just goes to show how little I know about all the magic that is shell... :-) I'd go with your suggestion - it's way more elegant. (patch updated)
Committed. Thanks!