add a (probably buggy) bash version