Apparently the twist to this bug is that numerics have to be typed to
trigger the
bug. If non-numeric characters are typed then ^I, the ^I expands as expected.

On Thu, Jul 25, 2013 at 10:47 AM, Quentin Barnes <qbar...@gmail.com> wrote:
> The ^I file expansion in emacs mode is documented on ksh(1) as, "If
> a partial completion occurs, repeating this will behave as if M-=
> were entered."
>
> I would think that if ^I is typed a second time after intervening
> characters it should continue with its original behavior of file
> expansion of rather than its repeating behavior of listing matches.
>
> For example:
> ======
> $ echo $KSH_VERSION
> Version AJM 93u+ 2012-08-01
> $ set -o emacs
> $ ls /tmp/mydir/JHS*
> /tmp/mydir/JHS_REFRESH-10.txt  /tmp/mydir/JHS_REFRESH-6.txt
> /tmp/mydir/JHS_REFRESH-12.txt  /tmp/mydir/JHS_REFRESH-9.txt
> $ ls /tmp/mydir/JHS^I
> The ^I expands the line to:
> $ ls /tmp/mydir/JHS_REFRESH-
> After the expansion immediately type "12" and press ^I again:
> $ ls /tmp/mydir/JHS_REFRESH-12^I
> 1) JHS_REFRESH-12.txt
> $ ls /tmp/mydir/JHS_REFRESH-12
> ======
>
> I would expect that typing the "12" characters would reset the ^I
> behavior back to file expansion rather than file list.  Is this a
> bug or a correctly operating feature?
>
> Quentin
_______________________________________________
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to