Bash-5.3 distribution sources and documentation

This commit is contained in:
Chet Ramey
2025-07-03 16:15:36 -04:00
parent 6794b5478f
commit b8c60bc9ca
896 changed files with 174241 additions and 103591 deletions
+25
View File
@@ -0,0 +1,25 @@
: ${THIS_SH:=./bash} ${TMPDIR:=/tmp}
# start at tests for pretty-print mode
# so far these are cases that aren't handled by the printing code anywhere
# else in the test suite
SCRIPT=$TMPDIR/pretty-print-$$
cat >$SCRIPT <<\EOF
for i in 1 2 3
{
select var in a b c; { echo $REPLY; } <<<a
echo answer was $REPLY
}
for (( i=1; i <= 3; i++ ))
{
echo $(( 2**$i ))
}
EOF
${THIS_SH} --pretty-print $SCRIPT
rm -f $SCRIPT