commit bash-20170607 snapshot

This commit is contained in:
Chet Ramey committed 2017-06-09 14:13:22 -04:00
1 parent b90cb5a280
commit 6911f4a3c9
4 files changed
+26 -10

No files matched your search

+14
View File
@@ -14020,3 +14020,17 @@ variables.c
regenerate attribute set, call the dynamic value function to generate
an updated value before placing it in the environment. From a report
about exporting LINENO from by Robert Elz <kre@bmunnari.OZ.AU>
6/4
---
lib/glob/sm_loop.c
- BRACKMATCH: at the matched: label, make sure we get the bracket
character we're looking for (char class, collating symbol. etc.)
before we decrement the count of braces we're looking for. Eventually
we could do something about badly-formed bracket expressions
6/7
---
lib/readline/histlib.h
- strchr: only declare if __STDC__ is not defined, since we already
include <string.h>. Report from Chi-Hsuan Yen <yan12125@gmail.com>
+2 -2
View File
@@ -51,9 +51,9 @@
#endif
#ifndef member
# ifndef strchr
# if !defined (strchr) && !defined (__STDC__)
extern char *strchr ();
# endif
# endif /* !strchr && !__STDC__ */
#define member(c, s) ((c) ? ((char *)strchr ((s), (c)) != (char *)NULL) : 0)
#endif
+4 -4
View File
@@ -64,11 +64,11 @@ fx ()
0
1
2
/usr/local/build/chet/bash/bash-current/bash: -c: line 0: syntax error: arithmetic expression required
/usr/local/build/chet/bash/bash-current/bash: -c: line 0: syntax error: `(( i=0; "i < 3" ))'
bash: -c: line 0: syntax error: arithmetic expression required
bash: -c: line 0: syntax error: `(( i=0; "i < 3" ))'
2
/usr/local/build/chet/bash/bash-current/bash: -c: line 0: syntax error: `;' unexpected
/usr/local/build/chet/bash/bash-current/bash: -c: line 0: syntax error: `(( i=0; i < 3; i++; 7 ))'
bash: -c: line 0: syntax error: `;' unexpected
bash: -c: line 0: syntax error: `(( i=0; i < 3; i++; 7 ))'
2
20
20
+6 -4
View File
@@ -74,17 +74,19 @@ type fx
fx
# errors
{
${THIS_SH} -c 'for (( i=0; "i < 3" ))
do
echo $i
done'
echo $?
done' ; echo $? ; } 2>&1 | sed 's|^.*/||'
#echo $?
{
${THIS_SH} -c 'for (( i=0; i < 3; i++; 7 ))
do
echo $i
done'
echo $?
done' ; echo $?; } 2>&1 | sed 's|^.*/||'
#echo $?
# one-liners added in post-bash-2.04
for ((i=0; i < 20; i++)) do : ; done