fix crash from compgen in a non-interactive shell; globstar option now works with complete -G; wait -p changes; some int->size_t changes

This commit is contained in:
Chet Ramey
2022-04-19 10:45:39 -04:00
parent 3be2a2ca9a
commit 7a8455e421
45 changed files with 7600 additions and 8195 deletions
+3 -2
View File
@@ -146,7 +146,8 @@ strsub (string, pat, rep, global)
char *string, *pat, *rep;
int global;
{
int patlen, replen, templen, tempsize, repl, i;
size_t patlen, replen, templen, tempsize, i;
int repl;
char *temp, *r;
patlen = strlen (pat);
@@ -189,7 +190,7 @@ strcreplace (string, c, text, flags)
int flags;
{
char *ret, *p, *r, *t;
int len, rlen, ind, tlen;
size_t len, rlen, ind, tlen;
int do_glob, escape_backslash;
do_glob = flags & 1;