Error in SH + missing varaible declaration