From 65bd27298d31c6733b68d0cd6b7a4fc26e0598be Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 26 Jun 2019 18:12:55 -0700 Subject: [PATCH] Fix a few non-dash safe xstormy16 shell scripts. Noticed by a customer while looking at a tangentially related problem. The gas testsuite for xstormy16 has two scripts that have a typo on the first line, they are missing the !. They also use shell syntax that doesn't work on a system where /bin/sh is dash. So I fixed the typo, changed the shell to bash, and made them executable, so that they now work when run directly even if /bin/sh is dash. gas/ * testsuite/gas/xstormy16/allinsn.sh: Change first line to #!/bin/bash and make it executable. * testsuite/gas/xstormy16/gcc.sh: Likewise. --- gas/ChangeLog | 6 ++++++ gas/testsuite/gas/xstormy16/allinsn.sh | 2 +- gas/testsuite/gas/xstormy16/gcc.sh | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) mode change 100644 => 100755 gas/testsuite/gas/xstormy16/allinsn.sh mode change 100644 => 100755 gas/testsuite/gas/xstormy16/gcc.sh diff --git a/gas/ChangeLog b/gas/ChangeLog index c1b4625..5074c4b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2019-06-26 Jim Wilson + + * testsuite/gas/xstormy16/allinsn.sh: Change first line to + #!/bin/bash and make it executable. + * testsuite/gas/xstormy16/gcc.sh: Likewise. + 2019-06-26 Lili Cui * doc/c-i386.texi: Document x/y/z instruction sufffixes in AT&T diff --git a/gas/testsuite/gas/xstormy16/allinsn.sh b/gas/testsuite/gas/xstormy16/allinsn.sh old mode 100644 new mode 100755 index 03828f9..feb1a19 --- a/gas/testsuite/gas/xstormy16/allinsn.sh +++ b/gas/testsuite/gas/xstormy16/allinsn.sh @@ -1,4 +1,4 @@ -#/bin/sh +#!/bin/bash # Generate test result data for xstormy16 GAS testing. # This script is machine generated. # It is intended to be run in the testsuite source directory. diff --git a/gas/testsuite/gas/xstormy16/gcc.sh b/gas/testsuite/gas/xstormy16/gcc.sh old mode 100644 new mode 100755 index 1eb8972..5a20f9e --- a/gas/testsuite/gas/xstormy16/gcc.sh +++ b/gas/testsuite/gas/xstormy16/gcc.sh @@ -1,4 +1,4 @@ -#/bin/sh +#!/bin/bash # Generate test result data for xstormy16 GAS testing. # It is intended to be run in the testsuite source directory. # -- 2.7.4