Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enabling filename completion in csh/ksh?

Status
Not open for further replies.

VBDotNetProgrammer

Programmer
Jul 9, 2003
50
GB
Hi,

im using both ksh and csh but for some reason on one of our servers the filename completion does not work.

I take it that it is set in .cshrc?

If so what do i need to type and if not does anyone know where it is set?

Thanks
 
2 different things.

The vi you use for command line recall and edit is built into the shell (/bin/ksh). At the command prompt, when you type esc - , you're in the inbuilt vi.

To invoke /bin/vi by typing vi at the command prompt, you need /bin in your $PATH.

 
When you've done a set -o vi in ksh (or done a exec ksh -o vi) you can access filename completion by using the Esc-\ combination.

Greg.
 
in a csh you can:
Code:
set filec

at least on Solaris.

BTW, on Solaris file completion uses <ESC> and Ctrl-D instead of <TAB>, not sure of other platforms.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top