Skip to Content.
Sympa Menu

sm-spell-submit - [SM-Spell-Submit]Command completion patch for bash-2.05b

sm-spell-submit AT lists.ibiblio.org

Subject: Submit list for new spells

List archive

Chronological Thread  
  • From: Tony Smith <tony AT smee.org>
  • To: sm-spell-submit AT lists.ibiblio.org
  • Subject: [SM-Spell-Submit]Command completion patch for bash-2.05b
  • Date: Thu, 17 Oct 2002 09:38:16 +0100

The attached patch fixes the command completion bug in bash-2.05b which has
been driving me nuts! i.e.

$ ./di[TAB]

gives

$ ./dir[SPACE]

when it should give

$ ./dir/

Tony
*** bash-2.05b/bashline.c	Tue May  7 15:52:42 2002
--- bash-2.05b-fixed/bashline.c	Wed Jul 24 12:22:57 2002
***************
*** 1053,1057 ****
--- 1053,1061 ----
  	  if (matches == (char **)NULL)
  	    rl_ignore_some_completions_function = bash_ignore_filenames;
+ #if 0
  	  else if (matches[1] == 0 && *matches[0] != '/')
+ #else
+ 	  else if (matches[1] == 0 && absolute_pathname (matches[0]) == 0)
+ #endif
  	    /* Turn off rl_filename_completion_desired so readline doesn't
  	       append a slash if there is a directory with the same name



  • [SM-Spell-Submit]Command completion patch for bash-2.05b, Tony Smith, 10/17/2002

Archive powered by MHonArc 2.6.24.

Top of Page