Re: command_not_found_handle not called if "command" includes a slash

2009-12-29 Thread Ken Irving
On Tue, Dec 29, 2009 at 12:33:25PM -0900, Ken Irving wrote: > On Mon, Dec 28, 2009 at 03:24:33PM -0900, Ken Irving wrote: > > On Sat, Dec 26, 2009 at 12:54:47PM -0900, Ken Irving wrote: > > > Description: > > > I'm not sure this is a bug, but I notice that the > > > command_not_found_handle

Re: command_not_found_handle not called if "command" includes a slash

2009-12-29 Thread Jan Schampera
Ken Irving schrieb: > That's up to that function to determine, since bash passes control over > to it. It should be able to handle whatever it gets. My use case is > to take things that look like 'object.method' -- which are not likely > to collide with normal executables -- and run them under a

Re: command_not_found_handle not called if "command" includes a slash

2009-12-29 Thread Ken Irving
On Tue, Dec 29, 2009 at 10:40:04PM +0100, Jan Schampera wrote: > Ken Irving schrieb: > > >> This patch is not sufficient, as it leaves the error message, but it > >> does call the hook function in the problem cases: > > I'm just not sure if it makes sense. I mean, if the user requests the

Re: command_not_found_handle not called if "command" includes a slash

2009-12-29 Thread Jan Schampera
Ken Irving schrieb: >> This patch is not sufficient, as it leaves the error message, but it >> does call the hook function in the problem cases: I'm just not sure if it makes sense. I mean, if the user requests the execution of a *specific file*, what should the hook function do if it fai

Re: command_not_found_handle not called if "command" includes a slash

2009-12-29 Thread Ken Irving
On Mon, Dec 28, 2009 at 03:24:33PM -0900, Ken Irving wrote: > On Sat, Dec 26, 2009 at 12:54:47PM -0900, Ken Irving wrote: > > Description: > > I'm not sure this is a bug, but I notice that the > > command_not_found_handle function is not called if the "command" has a > > slash in it. I

Re: command_not_found_handle not called if "command" includes a slash

2009-12-28 Thread Ken Irving
On Sat, Dec 26, 2009 at 12:54:47PM -0900, Ken Irving wrote: > Description: > I'm not sure this is a bug, but I notice that the > command_not_found_handle function is not called if the "command" has a > slash in it. I can't find anywhere in the bash source producing the > "No such f

Re: command_not_found_handle not called if "command" includes a slash

2009-12-27 Thread Chet Ramey
On 12/27/09 4:30 AM, Jan Schampera wrote: > From what I can see, the hook function is only triggered when a PATH > search returns no result. A given relative or absolute filename doesn't > trigger a PATH search. Quite true. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: command_not_found_handle not called if "command" includes a slash

2009-12-27 Thread Jan Schampera
Ken Irving schrieb: > Description: > I'm not sure this is a bug, but I notice that the > command_not_found_handle function is not called if the "command" has a > slash in it. I can't find anywhere in the bash source producing the > "No such file ..." error message, so I guess thi

command_not_found_handle not called if "command" includes a slash

2009-12-26 Thread Ken Irving
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba