X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bash-requires.patch;h=28163674515fd7769100a5f81e27fdc761f304c8;hb=f2c0c7f04b839b21f1815b4c02dcf8381e46fcae;hp=2b5baa279e1113f5cff94341a2dd0c06f284c349;hpb=35373510e9e8583ac1b0a37548d9decd7c39c57d;p=packages%2Fbash.git diff --git a/bash-requires.patch b/bash-requires.patch index 2b5baa2..2816367 100644 --- a/bash-requires.patch +++ b/bash-requires.patch @@ -1,5 +1,5 @@ ---- bash-2.04-beta5/builtins/mkbuiltins.c.requires Thu Aug 5 12:42:54 1999 -+++ bash-2.04-beta5/builtins/mkbuiltins.c Sun Mar 19 14:14:17 2000 +--- bash-2.05b/builtins/mkbuiltins.c.requires Thu Aug 5 12:42:54 1999 ++++ bash-2.05b/builtins/mkbuiltins.c Sun Mar 19 14:14:17 2000 @@ -51,8 +51,13 @@ #define whitespace(c) (((c) == ' ') || ((c) == '\t')) @@ -43,7 +43,7 @@ building_builtin = 1; @@ -1164,10 +1179,11 @@ else - fprintf (structfile, "(Function *)0x0, "); + fprintf (structfile, "(sh_builtin_func_t *)0x0, "); - fprintf (structfile, "%s%s%s, %s_doc,\n", + fprintf (structfile, "%s%s%s%s, %s_doc,\n", @@ -51,7 +51,7 @@ (builtin->flags & BUILTIN_FLAG_SPECIAL) ? " | SPECIAL_BUILTIN" : "", (builtin->flags & BUILTIN_FLAG_ASSIGNMENT) ? " | ASSIGNMENT_BUILTIN" : "", + (builtin->flags & BUILTIN_FLAG_REQUIRES) ? " | REQUIRES_BUILTIN" : "", - builtin->docname ? builtin->docname : builtin->name); + document_name (builtin)); fprintf @@ -1401,6 +1417,13 @@ @@ -121,17 +121,16 @@ #if defined (JOB_CONTROL) #include "jobs.h" -@@ -49,7 +52,10 @@ +@@ -49,6 +52,9 @@ + extern int line_number, current_command_line_count; - extern int disallow_filename_globbing; extern int last_command_exit_value; +extern int rpm_requires; - +char *alphabet_set = "abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - WORD_DESC * - make_bare_word (string) + static COMMAND *make_for_or_select __P((enum command_type, WORD_DESC *, WORD_LIST *, COMMAND *)); + #if defined (ARITH_FOR_COMMAND) @@ -696,6 +702,36 @@ return (make_command (cm_subshell, (SIMPLE_COM *)temp)); } @@ -191,7 +190,7 @@ + output_requirement(cmd1); + } + } else { -+ if (!assignment(cmd0)) { ++ if (!assignment(cmd0, 0)) { + output_requirement(cmd0); + } else { +