Re: Feature Idea: Enhanced Tab Completion

2009-03-21 Thread Chris Jones
On Sat, Mar 21, 2009 at 04:59:36PM EDT, Bob Proulx wrote: > Chris Jones wrote: > > I had posted the following obfuscated explanation a couple of hours > > ago but since I was subscribed under a different address, it never > > made it to the list. > > > > :-( > > Actually it seems to have made it

Re: Feature Idea: Enhanced Tab Completion

2009-03-21 Thread Bob Proulx
Chris Jones wrote: > I had posted the following obfuscated explanation a couple of hours ago > but since I was subscribed under a different address, it never made it > to the list. > > :-( Actually it seems to have made it to the okay. No need for an unhappy face. You do not need to be subscrib

Re: Feature Idea: Enhanced Tab Completion

2009-03-21 Thread Chris Jones
On Sat, Mar 21, 2009 at 01:16:12PM EDT, Ken Irving wrote: > This sounds a lot like what you get with the reverse-search-history > command, bound to control-r (C-r), a great feature indeed. Priceless. I had posted the following obfuscated explanation a couple of hours ago but since I was subscr

Re: Feature Idea: Enhanced Tab Completion

2009-03-21 Thread Chris Jones
On Sat, Mar 21, 2009 at 01:01:51PM EDT, Cam Cope wrote: > I'm sorry if the feature has already been implemented, I haven't heard > of any way to implement it. This is what I was thinking of: Right now, > if you run history, it will list out all the recently used commands, > and then you could run

[PATCH] NULL dereference on EOF in heredoc with history on

2009-03-21 Thread Lubomir Rintel
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPAC

Re: fc command substitution behavior, possible bug

2009-03-21 Thread Chet Ramey
smallnow wrote: > $ echo $BASH_VERSION > 3.2.48(1)-release > $ echo $(fc -nl -1) > echo $BASH_VERSION > > > $ echo $BASH_VERSION > 4.0.10(2)-release > $ echo $(fc -nl -1) > echo $(fc -nl -1) > > I see there were a lot of changes to fc, is this intended or a bug? The off-by-one errors that occur

Re: Feature Idea: Enhanced Tab Completion

2009-03-21 Thread Chris F.A. Johnson
On Sat, 21 Mar 2009, Ken Irving wrote: On Sat, Mar 21, 2009 at 01:01:51PM -0400, Cam Cope wrote: On Sat, Mar 21, 2009 at 11:48 AM, Chet Ramey wrote: Cam Cope wrote: Combine tab completion with history: when you put ! at the beginning of a command and use tab completion, it displays history r

Re: Feature Idea: Enhanced Tab Completion

2009-03-21 Thread Ken Irving
On Sat, Mar 21, 2009 at 01:01:51PM -0400, Cam Cope wrote: > On Sat, Mar 21, 2009 at 11:48 AM, Chet Ramey wrote: > > Cam Cope wrote: > > > Combine tab completion with history: when you put ! at the beginning of a > > > command and use tab completion, it displays history results > > > > What do you

Re: Feature Idea: Enhanced Tab Completion

2009-03-21 Thread Cam Cope
I'm sorry if the feature has already been implemented, I haven't heard of any way to implement it. This is what I was thinking of: Right now, if you run history, it will list out all the recently used commands, and then you could run !360 to run that history result. Often I'm looking for a specific

Re: Feature Idea: Enhanced Tab Completion

2009-03-21 Thread Chet Ramey
Cam Cope wrote: > Combine tab completion with history: when you put ! at the beginning of a > command and use tab completion, it displays history results What do you mean by `history results'? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRUc...@case.edu

Re: Feature Idea: Enhanced Tab Completion

2009-03-21 Thread Jan Schampera
Cam Cope wrote: > Combine tab completion with history: when you put ! at the beginning of a > command and use tab completion, it displays history results IMHO yet a new history expansion/editing/searching mechanism (there already are a few) would bloat it even more. But that's just my opinion. J