]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/run-nquote4
bash-5.0 distribution sources and documentation
[thirdparty/bash.git] / tests / run-nquote4
index 44baac4cbce23857140e00305bfce8215486fbce..985c31113385f9cdb54fc55891847f94da4dd173 100644 (file)
@@ -1,4 +1,8 @@
+# See whether or not we can use `diff -a'
+( diff -a ./nquote4.right ./nquote4.right >/dev/null 2>&1 ) && AFLAG=-a
+
 echo warning: some of these tests will fail if you do not have UTF-8 >&2
 echo warning: locales installed on your system >&2
-${THIS_SH} ./nquote4.tests 2>&1 | grep -v '^expect' > ${BASH_TSTOUT}
-diff ${BASH_TSTOUT} nquote4.right && rm -f ${BASH_TSTOUT}
+
+${THIS_SH} ./nquote4.tests > ${BASH_TSTOUT} 2>&1
+diff ${AFLAG} ${BASH_TSTOUT} nquote4.right && rm -f ${BASH_TSTOUT}