DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st August 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default 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"
Which are a mixture of Scottro's ksh page and "playful" looking around 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-$
The bind command not being found (of course) are from the aforementioned bind commands for '^complete.*' directives in my $ENV file. I didn't see completion in the manual page for ksh93 and the 'esc esc' mentioned in the FAQ doesn't work/help. The manual page is fairly large and generally well done, so I reckon I could've missed it, but I don't think so. Any one hit this before, and solved it?
__________________
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''.
Reply With Quote
  #2   (View Single Post)  
Old 31st August 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

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''.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 02:22 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick