Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-04-2005, 02:45 PM   #1
LQ Newbie
Registered: Mar 2005
Location: Montreal
Distribution: Suse, AIX, Solaris
Posts: 15

Rep: Reputation: 0
bash "tab tab" - how to turn off?

I have some procedure that were written on a Solaris / ksh setup. The procedures are just a bunch a commands that I cut and paste using X mouse selection from the procedure file to the shell. This procedure has indentation using tabs so now that I use Linux, bash interprets the "tab tab" as a file completion.

Ex: procedure is:
<TAB><TAB>cd directory

in ksh I cut and past that, it's fine. In bash I get very weird results. These procedures are long and I do not want to edit them all. Note that the indentation may be any number of <TAB> keys (1 to n).

So how do I turn off the bash response to the <TAB> key (if at all possible)? The ideal solution would be something temporary for the session and not a full system/user setup.

Thanks to all!
Old 04-04-2005, 03:04 PM   #2
Senior Member
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Try commenting the line about bash completion in /etc/profile , logout and back in for the change to take effect.
Old 04-04-2005, 04:09 PM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,047
Blog Entries: 11

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Alternatively (rather than you editing them manually,
or screwing up bash for the sake of a script): how about
if you used sed and replaced the tabs by spaces?

sed -i 's/\t/ /g' <ksh-files>



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC 4. Modify ALT+TAB behaviour to CTRL+TAB xtracto Linux - Software 1 09-22-2005 03:06 PM
KDE3.4 "Wheel Optical Mouse" tab missing Darkvater Linux - Software 4 04-11-2005 11:49 AM
How can I turn on/install tab completion which I am so used to. jimdaworm *BSD 2 04-07-2005 12:25 AM
New kernel, no "tab complete links" Power User Fedora 1 02-04-2005 02:16 PM
KDE Login Manager missing the "session" tab culturejam Mandriva 13 10-11-2004 01:35 PM

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration