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: <your description>
25 Bug-Reported-by: guillaume.outters@free.fr
26 Bug-Reference-ID: <20100105230441.70D171AA7F52@asterix.local>
27 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-01/msg00017.html
31 Bash-4.1/Readline-6.1 introduced a hook function that allows applications
32 to rewrite or modify filenames read from the file system before comparing
33 them with a word to be completed. The converted filename, if it matches,
34 needs to be inserted into the line buffer, replacing the original contents.
36 This fixes a completion bug on Mac OS X involving filenames containing
39 Patch (apply with `patch -p0'):
41 *** ../bash-4.1-patched/lib/readline/complete.c 2009-11-29 18:39:30.000000000 -0500
42 --- ./lib/readline/complete.c 2010-01-06 08:30:23.000000000 -0500
45 if (filename_len == 0)
47 ! if (_rl_match_hidden_files == 0 && HIDDEN_FILE (entry->d_name))
51 if (filename_len == 0)
53 ! if (_rl_match_hidden_files == 0 && HIDDEN_FILE (convfn))
60 ! strcpy (temp + dirlen, entry->d_name);
66 ! strcpy (temp + dirlen, convfn);
69 *** ../bash-4.1-patched/patchlevel.h 2009-10-01 16:39:22.000000000 -0400
70 --- ./patchlevel.h 2010-01-14 09:38:08.000000000 -0500
73 looks for to find the patch level (for the sccs version string). */
75 ! #define PATCHLEVEL 1
77 #endif /* _PATCHLEVEL_H_ */
79 looks for to find the patch level (for the sccs version string). */
81 ! #define PATCHLEVEL 2
83 #endif /* _PATCHLEVEL_H_ */