7 Bug-Reported-by: guillaume.outters@free.fr
8 Bug-Reference-ID: <20100105230441.70D171AA7F52@asterix.local>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-01/msg00017.html
13 Bash-4.1/Readline-6.1 introduced a hook function that allows applications
14 to rewrite or modify filenames read from the file system before comparing
15 them with a word to be completed. The converted filename, if it matches,
16 needs to be inserted into the line buffer, replacing the original contents.
18 This fixes a completion bug on Mac OS X involving filenames containing
21 Patch (apply with `patch -p0'):
23 *** ../bash-4.1-patched/lib/readline/complete.c 2009-11-29 18:39:30.000000000 -0500
24 --- lib/readline/complete.c 2010-01-06 08:30:23.000000000 -0500
27 if (filename_len == 0)
29 ! if (_rl_match_hidden_files == 0 && HIDDEN_FILE (entry->d_name))
33 if (filename_len == 0)
35 ! if (_rl_match_hidden_files == 0 && HIDDEN_FILE (convfn))
42 ! strcpy (temp + dirlen, entry->d_name);
48 ! strcpy (temp + dirlen, convfn);
51 *** ../bash-4.1-patched/patchlevel.h 2009-10-01 16:39:22.000000000 -0400
52 --- patchlevel.h 2010-01-14 09:38:08.000000000 -0500
55 looks for to find the patch level (for the sccs version string). */
57 ! #define PATCHLEVEL 1
59 #endif /* _PATCHLEVEL_H_ */
61 looks for to find the patch level (for the sccs version string). */
63 ! #define PATCHLEVEL 2
65 #endif /* _PATCHLEVEL_H_ */