Re: Issue with bash completion

2012-05-31 Thread suvayu ali
Hi Ed, I think I understand the issue and have a solution. Comments are always welcome. :) On Thu, May 31, 2012 at 3:32 PM, Ed Greshko wrote: > On 05/31/2012 08:29 PM, suvayu ali wrote: >> I guess that means I have to figure out how this dynamic loading works >> and I have to change my "complete

Re: Issue with bash completion

2012-05-31 Thread Ed Greshko
On 05/31/2012 08:29 PM, suvayu ali wrote: > I guess that means I have to figure out how this dynamic loading works > and I have to change my "complete -F " calls > accordingly. > > Thanks a lot for the help and discussion. :) Yeahstrange. The bash version is the same on F16 and F17. Let me

Re: Issue with bash completion

2012-05-31 Thread suvayu ali
On Thu, May 31, 2012 at 2:40 PM, Edward M wrote: >  Did you apply new released updates for fedora 17 ? I upgraded last night and I did an update this morning. That should cover it. But I think I am closer to the solution now. The issue is bash-completion now uses a new dynamic completion loading

Re: Issue with bash completion

2012-05-31 Thread Edward M
On 05/31/2012 03:29 AM, suvayu ali wrote: Hi, After the upgrade from Fedora 16 to Fedora 17, completion for any of my wrapper functions (for standard tools) are not working. To give an example, I have a wrapper around find called find_ext. I want it to complete just like GNU find so I define the

Re: Issue with bash completion

2012-05-31 Thread suvayu ali
Hello Ed, On Thu, May 31, 2012 at 2:05 PM, Ed Greshko wrote: > Hummm.. > > You said you did an upgrade.  The difference between your system and mine is > that > mine is a fresh install. > > In F16 the _find function is in /etc/bash_completion.d/findutils  while in > F17 it is > in /usr/shar

Re: Issue with bash completion

2012-05-31 Thread Ed Greshko
On 05/31/2012 07:55 PM, suvayu ali wrote: > That's a good idea, sadly doesn't help and confirms my original > observation. > > When I try the bove, I do see the completion function is assigned > correctly. However the function definition itself is absent. > > $ complete | grep find_ext > comple

Re: Issue with bash completion

2012-05-31 Thread suvayu ali
Hi Ed, On Thu, May 31, 2012 at 1:27 PM, Ed Greshko wrote: > Oh, I forgot to add. > > Before you call your command try typing > > complete | grep find_ext > > just to make sure that the current shell has the definition. That's a good idea, sadly doesn't help and confirms my original observati

Re: Issue with bash completion

2012-05-31 Thread suvayu ali
Hi Tom, On Thu, May 31, 2012 at 12:54 PM, Tom Horsley wrote: > On Thu, 31 May 2012 12:29:18 +0200 > suvayu ali wrote: > >> Has something changed drastically? How do I make my wrappers complete >> using standard completion functions? > > Yes, the bash-completion rpm is now shipped and installs > b

Re: Issue with bash completion

2012-05-31 Thread Ed Greshko
On 05/31/2012 06:29 PM, suvayu ali wrote: > Thanks in advance for any ideas. Oh, I forgot to add. Before you call your command try typing complete | grep find_ext just to make sure that the current shell has the definition. -- Never be afraid to laugh at yourself, after all, you could be

Re: Issue with bash completion

2012-05-31 Thread Ed Greshko
On 05/31/2012 06:29 PM, suvayu ali wrote: > Hi, > > After the upgrade from Fedora 16 to Fedora 17, completion for any of my > wrapper functions (for standard tools) are not working. To give an > example, I have a wrapper around find called find_ext. I want it to > complete just like GNU find so I d

Re: Issue with bash completion

2012-05-31 Thread Tom Horsley
On Thu, 31 May 2012 12:29:18 +0200 suvayu ali wrote: > Has something changed drastically? How do I make my wrappers complete > using standard completion functions? Yes, the bash-completion rpm is now shipped and installs by default with fedora. One of the many things on my list of post install ac

Issue with bash completion

2012-05-31 Thread suvayu ali
Hi, After the upgrade from Fedora 16 to Fedora 17, completion for any of my wrapper functions (for standard tools) are not working. To give an example, I have a wrapper around find called find_ext. I want it to complete just like GNU find so I define the following completion: complete -F _find