diff --git a/testsuite/tests/driver/T8602/T8602.script b/testsuite/tests/driver/T8602/T8602.script
index 746fb096bf19184612e86f149751716c5abf98b5..4729bd4e1ebac7401e3a8852fd8de7f575e57402 100644
--- a/testsuite/tests/driver/T8602/T8602.script
+++ b/testsuite/tests/driver/T8602/T8602.script
@@ -1,3 +1,4 @@
-:! echo 'echo $4 $5 $6; exit 1' > t8602.sh
+:! echo '#!/bin/sh' > t8602.sh
+:! echo 'echo $4 $5 $6; exit 1' >> t8602.sh
 :! chmod +x t8602.sh
 :load A