sh: 1: bgn: not found