LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   bash "tab tab" - how to turn off? (https://www.linuxquestions.org/questions/linux-general-1/bash-tab-tab-how-to-turn-off-309662/)

nicflatterie 04-04-2005 01:45 PM

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
<TAB><TAB>ls

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!

makuyl 04-04-2005 02:04 PM

Try commenting the line about bash completion in /etc/profile , logout and back in for the change to take effect.

Tinkster 04-04-2005 03:09 PM

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>




Cheers,
Tink


All times are GMT -5. The time now is 10:49 AM.