Syntax error: Bad fd number in sh