|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
|
Thread Tools | Display Modes |
|
||||
how to enable file/command completion for ksh93?
Does anyone know how to enable completion for filenames (and if possible commands/programs) in ksh93 ?
Under pdksh based stuff (I don't have ksh88 anywhere so I can't check), the usual procedure that I use works fine: Code:
set -o emacs bind "^I=complete" bind "^I=complete-command" bind "^I=complete-file" obsd$ bind | $PAGER for the sake of completeness. But when using the shells/ksh93 port on FreeBSD, I was a tad shocked when ksh93 didn't understand the bind:Code:
Terry@dixie$ ENV=~/.{$USER}_shrc 7:46 Terry@dixie$ SHELL=`which ksh93` 7:46 Terry@dixie$ ksh93 -l 7:47 /usr/home/Terry/.Terry_shrc[72]: bind: not found [No such file or directory] /usr/home/Terry/.Terry_shrc[73]: bind: not found [No such file or directory] /usr/home/Terry/.Terry_shrc[74]: bind: not found [No such file or directory] alias: gcc -Wall -Wpointer-arith -Wcast-qual -Wcast-align \ -Wconversion -Waggregate-return -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations \ -Wredundant-decls -Winline -Wnested-externs -std=c99 \ -march=i686 -pipe: invalid alias name There is more simplicity in a man who eats caviar on impulse than in a man who eats Grapenuts on principle. -- G. K. Chesterton To days date is: Sun Aug 31 07:47:05 UTC 2008 Terry@dixie-$
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
Ahh.... Never mind, I've found it accidentally:
ksh93$ ls D hitting tab twice triggers the same effect as complete-list in the pdksh-style korns.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HOW do I ENABLE the wireless device?? | bforest | FreeBSD General | 2 | 30th January 2009 05:54 PM |
Running a command with input from a file. | bigb89 | Programming | 4 | 21st January 2009 06:36 PM |
enable telnet access | c0mrade | Other BSD and UNIX/UNIX-like | 3 | 28th September 2008 10:56 PM |
Command to find and replace, but not creating a new file | 18Googol2 | Programming | 4 | 22nd September 2008 10:28 PM |
boot bug with USB enable | nORKy | FreeBSD Installation and Upgrading | 5 | 12th June 2008 04:56 PM |