bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

readline vi-mode '=' should mark directory expansion in posix mode (Modi


From: llattanz+bash
Subject: readline vi-mode '=' should mark directory expansion in posix mode (Modified by Len Lattanzi)
Date: Mon, 21 Jun 2004 10:19:59 -0700 (PDT)

Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: darwin8.0
Compiler: gcc
Compilation CFLAGS: -arch i386 -arch ppc -g -Os -pipe -no-cpp-precomp -arch i386 -arch ppc -pipe -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' -DCONF_OSTYPE='darwin8.0' -DCONF_MACHTYPE='powerpc-apple-darwin8.0' -DCONF_VENDOR='apple' -DSHELL -DHAVE_CONFIG_H -DMACOSX -I. -I/SourceCache/bash/bash-30/bash -I/SourceCache/bash/bash-30/bash/include -I/SourceCache/bash/bash-30/bash/lib -arch i386 -arch ppc -g -Os -pipe -no-cpp-precomp -arch i386 -arch ppc -pipe uname output: Darwin stderr.apple.com 8.0.0b1 Darwin Kernel Version 8.0.0b1: Mon May 10 23:45:14 PDT 2004; root:xnu/xnu-600.3.obj~4/RELEASE_PPC Power Macintosh powerpc
Machine Type: powerpc-apple-darwin8.0

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
        Posix mode should mark directories with '/' when listing matches

Repeat-By:
         mkdir dir
         set -o vi
         echo di
                     ^ here type <ESC> = and see dir listed without trailing /

Fix:
Index: bashline.c
===================================================================
RCS file: /cvs/root/bash/bash/bashline.c,v
retrieving revision 1.2
diff -u -d -b -w -r1.2 bashline.c
--- bashline.c  2003/04/05 09:36:38     1.2
+++ bashline.c  2004/06/21 17:11:17
@@ -226,8 +226,10 @@
 posix_readline_initialize (on_or_off)
      int on_or_off;
 {
-  if (on_or_off)
+  if (on_or_off) {
     rl_variable_bind ("comment-begin", "#");
+    rl_variable_bind ("visible-stats", "on");
+  }
 #if defined (VI_MODE)
rl_bind_key_in_map (CTRL ('I'), on_or_off ? rl_insert : rl_complete, vi_insertion_keymap);
 #endif





reply via email to

[Prev in Thread] Current Thread [Next in Thread]