I can't really take credit for it - see https://wiki.ubuntu.com/DashAsBinSh