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 [email protected] http://lists.research.att.com/mailman/listinfo/ast-users
