bash bug fix doesn't like function names with a dash