7 Bug-Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
8 Bug-Reference-ID: <E1Bo8Sq-0004u5-00@bouh>
9 Bug-Reference-URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=261142
13 When trying to auto-complete ~/../``/, I just get:
14 malloc: bashline.c:1340: assertion botched
15 free: start and end chunk sizes differ
16 last command: kill -9 %2
22 *** ../bash-3.0/bashline.c Mon Jul 5 23:22:12 2004
23 --- bashline.c Thu Sep 2 16:00:12 2004
28 /* Helper functions for Readline. */
29 + static int bash_directory_expansion __P((char **));
30 static int bash_directory_completion_hook __P((char **));
31 static int filename_completion_ignore __P((char **));
34 at = strchr (rl_completer_word_break_characters, '@');
35 if ((at == 0 && on_or_off == 0) || (at != 0 && on_or_off != 0))
38 /* We have something to do. Do it. */
40 at = strchr (rl_completer_word_break_characters, '@');
41 if ((at == 0 && on_or_off == 0) || (at != 0 && on_or_off != 0))
44 /* We have something to do. Do it. */
47 if (*hint_text == '~')
51 tl = strlen (hint_text);
52 l = vl - hint_len; /* # of chars added */
53 temp = (char *)xmalloc (l + 2 + tl);
54 strcpy (temp, hint_text);
56 if (*hint_text == '~')
61 tl = strlen (hint_text);
63 l = vl - hint_len; /* # of chars added */
65 + rd = savestring (filename_hint);
66 + bash_directory_expansion (&rd);
68 + l = vl - dl; /* # of chars added */
71 temp = (char *)xmalloc (l + 2 + tl);
72 strcpy (temp, hint_text);
78 + /* Simulate the expansions that will be performed by
79 + rl_filename_completion_function. This must be called with the address of
80 + a pointer to malloc'd memory. */
82 + bash_directory_expansion (dirname)
87 + d = savestring (*dirname);
89 + if (rl_directory_rewrite_hook)
90 + (*rl_directory_rewrite_hook) (&d);
92 + if (rl_directory_completion_hook && (*rl_directory_completion_hook) (&d))
99 /* Handle symbolic link references and other directory name
100 expansions while hacking completion. */
102 *** ../bash-3.0/patchlevel.h Wed Aug 22 08:05:39 2001
103 --- patchlevel.h Thu Sep 2 15:04:32 2004
106 looks for to find the patch level (for the sccs version string). */
108 ! #define PATCHLEVEL 9
110 #endif /* _PATCHLEVEL_H_ */
112 looks for to find the patch level (for the sccs version string). */
114 ! #define PATCHLEVEL 10
116 #endif /* _PATCHLEVEL_H_ */