How does one disable completion when nothing but tabs or spaces is on th
From:
Linda A. Walsh
Subject:
How does one disable completion when nothing but tabs or spaces is on the line?
Date:
Mon, 31 Dec 2012 13:48:21 -0800
User-agent:
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666
If I have nothing but tabs or spaces on a line, how do I disable
completion but have it return the char typed? (space or tab) -- and if
bash is looking for a command, then execute any command.
I.e.
<space><space><space>ls "works"
<tab><tab><tab>ls "sorta works (tab's are dropped/ignored) -- would
want them echo'd.
2) In a continuation line, if it is a quote, treat TAB's as literals if
they are the first thing on a line:
a="
<space><space><space><space>a"
echo "$a" gives me 'a' indented 4 spaces
Want:
a="
<tab>a"
echo "$a" to indent 1 tab (usually 8 spaces, but terminal dependent)
3) within a command (like if/while/for...).. i.e.
works:
if ((1)) ;then
<space>echo x
fi
doesn't work:
if ((1)); then
<tab>echo x
fi
------------------
NOTE: I tried binding a key like 'backquote' ("`") to the completion
character,
but it seems rebinding in readline doesn't work consistently. Is that a
bug?
Thanks!
[Prev in Thread]
Current Thread
[Next in Thread]
How does one disable completion when nothing but tabs or spaces is on the line?,
Linda A. Walsh<=