David Dartnall wrote: > A change from #!/bin/sh to > #!/bin/bash at the start of the script fixed the problem So your script claimed to be bourne shell, but really depended on bash features. Not unusual.