open sh file in read-only mode