]> git.pld-linux.org Git - packages/bash.git/blobdiff - bash-requires.patch
- updated to 3.2
[packages/bash.git] / bash-requires.patch
index dabb36488d28fa667ffb2bd554d4d53d023a8db2..28163674515fd7769100a5f81e27fdc761f304c8 100644 (file)
@@ -1,24 +1,5 @@
-
-Jeff Johnson writes:
-> For background, Ken Estes has a hack to bash2 that will print out the
-> commands that will be executed by a shell script. The hack is included
-> in the distributed Red Hat 6.x bash2 package if you are interested.
-
-
-Here is the latest patch file.
-
-Notice that I changed the output from "bash()" to "executable()"
-Since the dependencies work for both bash and sh and really we depend
-on their being an executable not that this executable is in anyway
-related to bash.
-
-Ken
-
-
-
-diff -u -r bash-2.03.orig/builtins/mkbuiltins.c bash-2.03/builtins/mkbuiltins.c
---- bash-2.03.orig/builtins/mkbuiltins.c       Tue Sep 15 12:57:16 1998
-+++ bash-2.03/builtins/mkbuiltins.c    Fri Jul 16 10:45:54 1999
+--- 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'))
  
@@ -62,7 +43,7 @@ diff -u -r bash-2.03.orig/builtins/mkbuiltins.c bash-2.03/builtins/mkbuiltins.c
    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",
@@ -70,7 +51,7 @@ diff -u -r bash-2.03.orig/builtins/mkbuiltins.c bash-2.03/builtins/mkbuiltins.c
                    (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 @@
@@ -87,21 +68,9 @@ diff -u -r bash-2.03.orig/builtins/mkbuiltins.c bash-2.03/builtins/mkbuiltins.c
  }
  
  #if !defined (HAVE_RENAME)
-diff -u -r bash-2.03.orig/builtins.h bash-2.03/builtins.h
---- bash-2.03.orig/builtins.h  Fri Jul 18 16:46:36 1997
-+++ bash-2.03/builtins.h       Thu Jul 15 16:59:03 1999
-@@ -40,6 +40,7 @@
- #define STATIC_BUILTIN  0x4   /* This builtin is not dynamically loaded. */
- #define SPECIAL_BUILTIN 0x8   /* This is a Posix `special' builtin. */
- #define ASSIGNMENT_BUILTIN 0x10       /* This builtin takes assignment statements. */
-+#define REQUIRES_BUILTIN 0x20 /* This builtin requires other files. */
- /* The thing that we build the array of builtins out of. */
- struct builtin {
-diff -u -r bash-2.03.orig/doc/bash.1 bash-2.03/doc/bash.1
---- bash-2.03.orig/doc/bash.1  Wed Jan 20 16:48:04 1999
-+++ bash-2.03/doc/bash.1       Fri Jul 16 11:20:00 1999
-@@ -195,6 +195,12 @@
+--- bash-2.04-beta5/doc/bash.1.requires        Tue Jan 11 19:36:49 2000
++++ bash-2.04-beta5/doc/bash.1 Sun Mar 19 14:14:17 2000
+@@ -196,6 +196,12 @@
  .B "RESTRICTED SHELL"
  below).
  .TP
@@ -114,10 +83,9 @@ diff -u -r bash-2.03.orig/doc/bash.1 bash-2.03/doc/bash.1
  .B \-\-verbose
  Equivalent to  \fB\-v\fP.
  .TP
-diff -u -r bash-2.03.orig/doc/bashref.texi bash-2.03/doc/bashref.texi
---- bash-2.03.orig/doc/bashref.texi    Wed Jan 20 16:47:01 1999
-+++ bash-2.03/doc/bashref.texi Fri Jul 16 11:21:30 1999
-@@ -3178,6 +3178,13 @@
+--- bash-2.04-beta5/doc/bashref.texi.requires  Wed Jan 12 16:18:50 2000
++++ bash-2.04-beta5/doc/bashref.texi   Sun Mar 19 14:14:17 2000
+@@ -4333,6 +4333,13 @@
  @item --restricted
  Make the shell a restricted shell (@pxref{The Restricted Shell}).
  
@@ -129,11 +97,20 @@ diff -u -r bash-2.03.orig/doc/bashref.texi bash-2.03/doc/bashref.texi
 +dependencies may be missed.
 +
  @item --verbose
- Equivalent to @samp{-v}.
+ Equivalent to @samp{-v}.  Print shell input lines as they're read.
  
-diff -u -r bash-2.03.orig/make_cmd.c bash-2.03/make_cmd.c
---- bash-2.03.orig/make_cmd.c  Tue Jan 12 12:45:36 1999
-+++ bash-2.03/make_cmd.c       Thu Dec  2 16:08:19 1999
+--- bash-2.04-beta5/builtins.h.requires        Thu Aug  5 11:18:12 1999
++++ bash-2.04-beta5/builtins.h Sun Mar 19 14:14:17 2000
+@@ -40,6 +40,7 @@
+ #define STATIC_BUILTIN  0x4   /* This builtin is not dynamically loaded. */
+ #define SPECIAL_BUILTIN 0x8   /* This is a Posix `special' builtin. */
+ #define ASSIGNMENT_BUILTIN 0x10       /* This builtin takes assignment statements. */
++#define REQUIRES_BUILTIN 0x20 /* This builtin requires other files. */
+ /* The thing that we build the array of builtins out of. */
+ struct builtin {
+--- bash-2.04-beta5/make_cmd.c.requires        Thu Aug  5 11:21:23 1999
++++ bash-2.04-beta5/make_cmd.c Sun Mar 19 14:17:34 2000
 @@ -41,6 +41,9 @@
  #include "subst.h"
  #include "input.h"
@@ -144,19 +121,18 @@ diff -u -r bash-2.03.orig/make_cmd.c bash-2.03/make_cmd.c
  
  #if defined (JOB_CONTROL)
  #include "jobs.h"
-@@ -48,6 +51,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";
++                   "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  
- WORD_DESC *
make_bare_word (string)
-@@ -588,6 +595,36 @@
-   return (make_command (cm_function_def, (SIMPLE_COM *)temp));
+ 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));
  }
  
 +void
@@ -192,7 +168,7 @@ diff -u -r bash-2.03.orig/make_cmd.c bash-2.03/make_cmd.c
  /* Reverse the word list and redirection list in the simple command
     has just been parsed.  It seems simpler to do this here the one
     time then by any other method that I can think of. */
-@@ -604,6 +641,35 @@
+@@ -712,6 +748,35 @@
        command->value.Simple->redirects =
        REVERSE_LIST (command->value.Simple->redirects, REDIRECT *);
      }
@@ -214,7 +190,7 @@ diff -u -r bash-2.03.orig/make_cmd.c bash-2.03/make_cmd.c
 +        output_requirement(cmd1);
 +      }
 +      } else {
-+      if (!assignment(cmd0)) {
++      if (!assignment(cmd0, 0)) {
 +        output_requirement(cmd0);
 +      } else {
 +
@@ -228,10 +204,9 @@ diff -u -r bash-2.03.orig/make_cmd.c bash-2.03/make_cmd.c
  
    return (command);
  }
-diff -u -r bash-2.03.orig/shell.c bash-2.03/shell.c
---- bash-2.03.orig/shell.c     Thu Feb 18 11:42:27 1999
-+++ bash-2.03/shell.c  Fri Jul 16 11:30:57 1999
-@@ -170,6 +170,9 @@
+--- bash-2.04-beta5/shell.c.requires   Fri Nov 19 19:58:15 1999
++++ bash-2.04-beta5/shell.c    Sun Mar 19 14:14:17 2000
+@@ -163,6 +163,9 @@
  /* The name of the .(shell)rc file. */
  static char *bashrc_file = "~/.bashrc";
  
@@ -241,7 +216,7 @@ diff -u -r bash-2.03.orig/shell.c bash-2.03/shell.c
  /* Non-zero means to act more like the Bourne shell on startup. */
  static int act_like_sh;
  
-@@ -215,6 +218,7 @@
+@@ -208,6 +211,7 @@
    { "norc", Int, &no_rc, (char **)0x0 },
    { "posix", Int, &posixly_correct, (char **)0x0 },
    { "rcfile", Charp, (int *)0x0, &bashrc_file },
@@ -249,7 +224,7 @@ diff -u -r bash-2.03.orig/shell.c bash-2.03/shell.c
  #if defined (RESTRICTED_SHELL)
    { "restricted", Int, &restricted, (char **)0x0 },
  #endif
-@@ -398,6 +402,12 @@
+@@ -393,6 +397,12 @@
  
    if (dump_translatable_strings)
      read_but_dont_execute = 1;
@@ -262,7 +237,3 @@ diff -u -r bash-2.03.orig/shell.c bash-2.03/shell.c
  
    if (running_setuid && privileged_mode == 0)
      disable_priv_mode ();
-
--- 
-To unsubscribe: mail -s unsubscribe rpm-list-request@redhat.com < /dev/null
-
This page took 0.035618 seconds and 4 git commands to generate.