3 if [ $# -eq 3 -a "$2" = '-d' ]; then
5 elif [ $# -ne 1 ]; then
6 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
10 -patch) patch $pdir -f --no-backup-if-mismatch -p1 < $0;;
11 -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p1 < $0;;
13 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
18 # DP: Build fixes for minimal bash
20 --- bash/parse.y~ 2009-11-02 23:34:15.000000000 +0100
21 +++ bash/parse.y 2009-12-30 17:08:12.341085169 +0100
22 @@ -2772,12 +2772,14 @@
23 dstack.delimiter_depth = 0; /* No delimiters found so far. */
26 +#if defined (EXTENDED_GLOB)
27 /* Reset to global value of extended glob */
28 if (parser_state & PST_EXTPAT)
30 /*itrace("reset_parser: parser_state includes PST_EXTPAT");*/
31 extended_glob = global_extglob;
37 --- bash/execute_cmd.c~ 2009-11-29 03:29:34.000000000 +0100
38 +++ bash/execute_cmd.c 2009-12-30 17:13:36.041085541 +0100
40 if (variable_context == 0 || this_shell_function == 0)
42 make_funcname_visible (0);
43 +#if defined (PROCESS_SUBSTITUTION)
49 --- bash/lib/glob/glob.c~ 2009-11-15 00:39:30.000000000 +0100
50 +++ bash/lib/glob/glob.c 2009-12-30 17:34:56.802336552 +0100
56 convfn = fnx_fromfs (dp->d_name, D_NAMLEN (dp));
58 + convfn = dp->d_name;
60 if (strmatch (pat, convfn, mflags) != FNM_NOMATCH)
62 if (nalloca < ALLOCA_MAX)