Bash-4.4 patch 8
This commit is contained in:
15
expr.c
15
expr.c
@@ -578,24 +578,23 @@ expcond ()
|
|||||||
rval = cval = explor ();
|
rval = cval = explor ();
|
||||||
if (curtok == QUES) /* found conditional expr */
|
if (curtok == QUES) /* found conditional expr */
|
||||||
{
|
{
|
||||||
readtok ();
|
|
||||||
if (curtok == 0 || curtok == COL)
|
|
||||||
evalerror (_("expression expected"));
|
|
||||||
if (cval == 0)
|
if (cval == 0)
|
||||||
{
|
{
|
||||||
set_noeval = 1;
|
set_noeval = 1;
|
||||||
noeval++;
|
noeval++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
readtok ();
|
||||||
|
if (curtok == 0 || curtok == COL)
|
||||||
|
evalerror (_("expression expected"));
|
||||||
|
|
||||||
val1 = EXP_HIGHEST ();
|
val1 = EXP_HIGHEST ();
|
||||||
|
|
||||||
if (set_noeval)
|
if (set_noeval)
|
||||||
noeval--;
|
noeval--;
|
||||||
if (curtok != COL)
|
if (curtok != COL)
|
||||||
evalerror (_("`:' expected for conditional expression"));
|
evalerror (_("`:' expected for conditional expression"));
|
||||||
readtok ();
|
|
||||||
if (curtok == 0)
|
|
||||||
evalerror (_("expression expected"));
|
|
||||||
set_noeval = 0;
|
set_noeval = 0;
|
||||||
if (cval)
|
if (cval)
|
||||||
{
|
{
|
||||||
@@ -603,7 +602,11 @@ expcond ()
|
|||||||
noeval++;
|
noeval++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
readtok ();
|
||||||
|
if (curtok == 0)
|
||||||
|
evalerror (_("expression expected"));
|
||||||
val2 = expcond ();
|
val2 = expcond ();
|
||||||
|
|
||||||
if (set_noeval)
|
if (set_noeval)
|
||||||
noeval--;
|
noeval--;
|
||||||
rval = cval ? val1 : val2;
|
rval = cval ? val1 : val2;
|
||||||
|
|||||||
@@ -25,6 +25,6 @@
|
|||||||
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
||||||
looks for to find the patch level (for the sccs version string). */
|
looks for to find the patch level (for the sccs version string). */
|
||||||
|
|
||||||
#define PATCHLEVEL 7
|
#define PATCHLEVEL 8
|
||||||
|
|
||||||
#endif /* _PATCHLEVEL_H_ */
|
#endif /* _PATCHLEVEL_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user