How sh--mode works, and sh-mode doesn't, is currently beyond me.