Not sure if it works with all *sh, using Bash to be sure.