Operating System - Linux
1753971 Members
8618 Online
108811 Solutions
New Discussion юеВ

Re: Command auto-Completion

 
SOLVED
Go to solution
Puneet Singh tandon
Frequent Advisor

Re: Command auto-Completion

Thanks for the Warning.
But ESCape doesnt have any effect in my case.
How do i check my command completion
sequence is set to what????
James R. Ferguson
Acclaimed Contributor

Re: Command auto-Completion

Hi (again) Moodie:

Given HP-UX, hitting the ESCape key *twice* after typing enough characters to make the filename unique, should cause auto-completion.

Given two files in the current working directory; each beginning with "p" :

# ls -l p

...will *not* auto-complete, but:

# ls -l po

...when the files "peek" and "poke" exist, will offer "ls -l poke".

Regards!

...JRF...
Puneet Singh tandon
Frequent Advisor

Re: Command auto-Completion

Hey JRF,
Could nt get any command auto completion but these characters ^[ only
Any suggestions
Stuart Browne
Honored Contributor

Re: Command auto-Completion

In most shells which do command-completion, '' is used as a replacement for the single '' press. So to get a list of matches, you'd do:

ls -al p

You'd get a BEL after the 2nd , and the list of matching commands after the 4th.

Now, if this doesn't work, check your 'stty' bindings to ensure that '' (^[) isn't bound to some other function ('stty -a' for the full list).
One long-haired git at your service...
Puneet Singh tandon
Frequent Advisor

Re: Command auto-Completion

No the escape ^[ isnt bind to anything.
Following is the stty -a log.


# stty -a
speed 9600 baud; line = 0;
rows = 40; columns = 140
min = 0; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 = ^@; swtch = ^@
stop = ^S; start = ^Q; susp = ^Z; dsusp = ^@
werase = ^@; lnext = ^@
parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon iexten -xcase echo echoe echok -echonl -noflsh
echoctl -echoprt echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
Matti_Kurkela
Honored Contributor

Re: Command auto-Completion

The "stty -a" command lists only the bindings done at the tty driver level. They are in effect in all the programs run in that terminal session unless overridden, so they must be very generic.

The shell has its own set of key bindings, unrelated to "stty -a" settings. Each shell has its own ways for setting up these bindings: for example, bash's key bindings can be listed with "bind -p".
MK
Puneet Singh tandon
Frequent Advisor

Re: Command auto-Completion

Thank you evrybdy