Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 48322 Details for
Bug 69407
bash-3.0-r7 has problem with wide char
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bash-3.0-command-not-found.patch
bash-3.0-command-not-found.patch (text/plain), 2.12 KB, created by
S.Caglar Onur
on 2005-01-12 10:04:44 UTC
(
hide
)
Description:
bash-3.0-command-not-found.patch
Filename:
MIME Type:
Creator:
S.Caglar Onur
Created:
2005-01-12 10:04:44 UTC
Size:
2.12 KB
patch
obsolete
>--- bash/execute_cmd.c~ 2004-08-28 14:43:04.000000000 +0200 >+++ bash/execute_cmd.c 2004-08-28 14:54:57.000000000 +0200 >@@ -3615,8 +3615,24 @@ > > if (command == 0) > { >- internal_error (_("%s: command not found"), pathname); >- exit (EX_NOTFOUND); /* Posix.2 says the exit status is 127 */ >+ SHELL_VAR *f, *v; >+ WORD_LIST *cmdlist; >+ WORD_DESC *w; >+ int fval; >+ if( (posixly_correct || interactive_shell == 0) || >+ (f = find_function ("command_not_found_handle")) == 0) >+ { >+ internal_error (_("%s: command not found"), pathname); >+ exit (EX_NOTFOUND); /* Posix.2 says the exit status is 127 */ >+ } >+ w = make_word("command_not_found_handle"); >+ cmdlist = make_word_list(w, (WORD_LIST*)NULL); >+ >+ w = make_word(pathname); >+ cmdlist->next = make_word_list(w, (WORD_LIST*)NULL); >+ >+ fval = execute_shell_function (f, cmdlist); >+ exit(fval); > } > > /* Execve expects the command name to be in args[0]. So we >--- bash/doc/bash.1~ 2004-08-06 08:01:10.000000000 +0200 >+++ bash/doc/bash.1 2004-08-28 15:03:13.000000000 +0200 >@@ -1972,6 +1972,13 @@ > .B % > job identifier. > .TP >+.B command_not_found_handle >+The name of a shell function to be called if a command cannot be >+found. The return value of this function should be 0, if the command >+is available after execution of the function, otherwise 127 (EX_NOTFOUND). >+Enabled only in interactive, non POSIX mode shells. This is a Debian >+extension. >+.TP > .B histchars > The two or three characters which control history expansion > and tokenization (see >--- bash/doc/bashref.texi~ 2004-06-26 20:26:07.000000000 +0200 >+++ bash/doc/bashref.texi 2004-08-28 15:06:27.000000000 +0200 >@@ -4734,6 +4734,13 @@ > @item UID > The numeric real user id of the current user. This variable is readonly. > >+@item command_not_found_handle >+The name of a shell function to be called if a command cannot be >+found. The return value of this function should be 0, if the command >+is available after execution of the function, otherwise 127 (EX_NOTFOUND). >+Enabled only in interactive, non POSIX mode shells. This is a Debian >+extension. >+ > @end vtable > > @node Bash Features
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 69407
:
42907
|
43427
|
43522
|
48318
|
48319
|
48320
|
48321
|
48322
|
48323
|
48324
|
48325
|
48326
|
48328
|
59114
|
63407