Blame bash-5.2-patch-5.patch
|
|
c58d3ff |
diff --git a/patchlevel.h b/patchlevel.h
|
|
|
c58d3ff |
--- a/patchlevel.h
|
|
|
c58d3ff |
+++ b/patchlevel.h
|
|
|
c58d3ff |
@@ -25,6 +25,6 @@
|
|
|
c58d3ff |
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
|
|
c58d3ff |
looks for to find the patch level (for the sccs version string). */
|
|
|
c58d3ff |
|
|
|
c58d3ff |
-#define PATCHLEVEL 4
|
|
|
c58d3ff |
+#define PATCHLEVEL 5
|
|
|
c58d3ff |
|
|
|
c58d3ff |
#endif /* _PATCHLEVEL_H_ */
|
|
|
c58d3ff |
diff --git a/subst.c b/subst.c
|
|
|
c58d3ff |
--- a/subst.c
|
|
|
c58d3ff |
+++ b/subst.c
|
|
|
c58d3ff |
@@ -8965,7 +8965,8 @@ pat_subst (string, pat, rep, mflags)
|
|
|
c58d3ff |
return (ret);
|
|
|
c58d3ff |
}
|
|
|
c58d3ff |
else if (*string == 0 && (match_pattern (string, pat, mtype, &s, &e) != 0))
|
|
|
c58d3ff |
- return ((mflags & MATCH_EXPREP) ? strcreplace (rep, '&', "", 2) : savestring (rep));
|
|
|
c58d3ff |
+ return (mflags & MATCH_EXPREP) ? strcreplace (rep, '&', "", 2)
|
|
|
c58d3ff |
+ : (rep ? savestring (rep) : savestring (""));
|
|
|
c58d3ff |
|
|
|
c58d3ff |
ret = (char *)xmalloc (rsize = 64);
|
|
|
c58d3ff |
ret[0] = '\0';
|