a select command invalid selection variable name is now a fatal error in posix mode; many test suite additions

This commit is contained in:
Chet Ramey
2023-09-25 15:08:04 -04:00
parent 1cc5a8f752
commit b3958b3ab4
56 changed files with 903 additions and 147 deletions
+20
View File
@@ -0,0 +1,20 @@
: ${THIS_SH:=./bash}
# all parse errors
${THIS_SH} -c '[[ ( -n xx' bash
${THIS_SH} -c '[[ ( -n xx )' bash
${THIS_SH} -c '[[ ( -t X ) ]' bash
${THIS_SH} -c '[[ -n &' bash
${THIS_SH} -c '[[ -n XX &' bash
${THIS_SH} -c '[[ -n XX & ]' bash
${THIS_SH} -c '[[ 4 & ]]' bash
${THIS_SH} -c '[[ 4 > & ]]' bash
${THIS_SH} -c '[[ & ]]' bash
${THIS_SH} -c '[[ -Q 7 ]]' bash
${THIS_SH} -c '[[ -n < ]]' bash