Unable to get autocompletion on !


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unable to get autocompletion on !
# 1  
Old 07-23-2009
Unable to get autocompletion on !

Hi,

Previously, if I type !cp <tab> the last cp command would come automatically. However, something has changed recently with my system.

I am unable to get a autocomplete !cp <tab> now. Where can I look for the changes ? Any idea what might have caused it ?
# 2  
Old 07-24-2009
Quote:
Originally Posted by coolket
Hi,

Previously, if I type !cp <tab> the last cp command would come automatically. However, something has changed recently with my system.

I am unable to get a autocomplete !cp <tab> now. Where can I look for the changes ? Any idea what might have caused it ?
Hi!

I rekon you are missing histexpand option in your SHELLOPTS variable. The command you are looking for is
Code:
set -H

As histexpand is on by default, you should have a look at /etc/bash.bashrc and ~/.bashrc - look for shopt command.

Regards,

pen
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using python with argument in TCSH autocompletion

Hi, I'm using a complete command in tcsh this way, the echo cmd is just for the example : complete echo 'p/1/`mypythonalias`/' And that works just great returning what the python script is printing out. However I want to give an argument to the python script to narrow down its results... (5 Replies)
Discussion started by: chistof
5 Replies

2. Forum Support Area for Unregistered Users & Account Problems

Unable to log in

Hi Mater, I get a message from your website Forums Rules that China user can't log in this forums for security reason. However, I am a new user for UNIX, and I have never touch the UNIX system before. So I think I am a friendly man for your rules. Critically, I need everyone help in this forums... (0 Replies)
Discussion started by: h_y754831
0 Replies

3. Solaris

Unable to do su -

Hi, when I try to do " su - oradba" on my solaris box i get following error: Please let me know the proabbale cause and resolution to this. ===================== su - oradba Enter Local Unix Password: Login Error ----------- The user 'oradba' is not allowed to log direct into this host.... (2 Replies)
Discussion started by: Laxxi
2 Replies

4. Solaris

Unable to use df -h

Hi , On one of my solaris server I getan error whenever I use df -h as below. df: unknown option: h Usage: df But this works on other servers.Please advise. Regards, VN (2 Replies)
Discussion started by: narayanv
2 Replies

5. UNIX for Advanced & Expert Users

"╭─ " Character combo in $PATH causes strange autocompletion behavior in zsh

I've posted about this before, but only recently narrowed the problem down to a specific cause. Ok, first of all, the behavior: It occurs when autocompletion brings up its list (not when there is only a single option). Basically, if I were to type, say, cd ~/<TAB> I would get something... (2 Replies)
Discussion started by: marshaul
2 Replies

6. Shell Programming and Scripting

white spaces in bash autocompletion

Hello dear community! I've recently written a BASH function for auto completion of options. It works like following: if a user types a command and then an argument to this command which starts with "^-" and then presses TAB, then 'user_command --help (or -h)' is invoked and possible options are... (0 Replies)
Discussion started by: sidorenko
0 Replies

7. AIX

korn prompt autocompletion possible ?

My client`s system is an AIX 4.2 and using the Kron shell. I was just wondering if it is possible to have the prompt autocompletion enabled on it without changing shell version. By autocompletion, I mean to automatically complete the filenames or directories we type in using the Tab key. (2 Replies)
Discussion started by: Browser_ice
2 Replies

8. Forum Support Area for Unregistered Users & Account Problems

Unable to

Unable to Activate ErnieS email id removed It just keeps sending me round in circles? And in true Unix fashion as soon as I post this it does.... Please ignore Thanks (1 Reply)
Discussion started by: ErnieS
1 Replies

9. AIX

Unable to ssh out

As the title says, I'm unable to ssh out of boxA to other nodes on the network. I am running 5.2 ML6. The version of ssh client is: openssh.base.client 4.1.0.5301 COMMITTED Open Secure Shell Commands The program installed okay with no errors. When I try to ssh to another node on... (6 Replies)
Discussion started by: outtacontrol
6 Replies

10. UNIX for Dummies Questions & Answers

Path autocompletion in ksh

Say, I want to move into dir library from current dir, on prompt if I type in cd li if it is followed by pressing 'Tab' key then complete dir name appears. Would there anyone know, how we can make into effect this path autocompletion? I am using 'ksh'. (5 Replies)
Discussion started by: videsh77
5 Replies
Login or Register to Ask a Question

Featured Tech Videos