I stumbled into this bug today and, according to my findings, this is due to `/bin/sh' being symlinked to `/bin/dash'.
If you replace `#!/bin/sh' with `#!/bin/bash', it works. -- Dario Niedermann. Also on the Internet at: gopher://darioniedermann.it/ <> https://www.darioniedermann.it/