Completion: menu-complete from second TAB hit onwards

2009-09-29 Thread Julien Duval
Hi everyone, I'm trying to get a specific completion behaviour (simple but effective). Any help would be greatly appreciated. Here is what I'm looking for: 1. When TAB is hit once, complete the command-line with the longest common prefix AND list all possible completions (at the same time). This

Re: the context of expansion for output redirection

2009-09-29 Thread Chet Ramey
Lewis Hyatt wrote: > Hello- > > I was somewhat surprised to see the following behavior (this is 3.1.17): > > $ x=0; /bin/echo > /tmp/$((++x)); echo $x > 0 > $ x=0; echo > /tmp/$((++x)); echo $x > 1 > > I guess in the first case the expansion of $((++x)) is taking place after > forking, whereas i