You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.7 KiB
92 lines
2.7 KiB
This patch documents two implemented and classical command |
|
line options "-v" and "-x". It is derived from Debian GNU/Linux. |
|
|
|
Index: doc/bash.1 |
|
--- doc/bash.1.orig 2014-02-06 15:03:52.000000000 +0100 |
|
+++ doc/bash.1 2014-03-01 12:28:01.673970389 +0100 |
|
@@ -117,6 +117,12 @@ |
|
This option allows the positional parameters to be set |
|
when invoking an interactive shell. |
|
.TP |
|
+.B \-v |
|
+Print shell input lines as they are read. |
|
+.TP |
|
+.B \-x |
|
+Print commands and their arguments as they are executed. |
|
+.TP |
|
.B \-D |
|
A list of all double-quoted strings preceded by \fB$\fP |
|
is printed on the standard output. |
|
|
|
----------------------------------------------------------------------------- |
|
|
|
This adds the OpenPKG packaging brand. |
|
|
|
Index: version.c |
|
--- version.c.orig 2013-03-10 18:20:13.000000000 +0100 |
|
+++ version.c 2014-03-01 12:28:01.673970389 +0100 |
|
@@ -83,7 +83,7 @@ |
|
show_shell_version (extended) |
|
int extended; |
|
{ |
|
- printf (_("GNU bash, version %s (%s)\n"), shell_version_string (), MACHTYPE); |
|
+ printf (_("GNU bash, version %s (%s) [@l_openpkg_release@]\n"), shell_version_string (), MACHTYPE); |
|
if (extended) |
|
{ |
|
printf ("%s\n", _(bash_copyright)); |
|
|
|
----------------------------------------------------------------------------- |
|
|
|
Ensure that Autoconf and friends are not run. |
|
|
|
Index: Makefile.in |
|
--- Makefile.in.orig 2014-03-01 12:28:01.673970000 +0100 |
|
+++ Makefile.in 2014-03-01 12:28:12.774181498 +0100 |
|
@@ -728,7 +728,6 @@ |
|
|
|
# comment out for distribution |
|
$(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4 $(srcdir)/config.h.in |
|
- cd $(srcdir) && autoconf |
|
|
|
# for chet |
|
reconfig: force |
|
|
|
----------------------------------------------------------------------------- |
|
|
|
Fix Bash getcwd(3) run-time issue seen on Solaris where size argument |
|
of 0 does not malloc buffer as expected by Bash code. |
|
|
|
Index: builtins/common.c |
|
--- builtins/common.c.orig 2012-02-15 22:44:07.000000000 +0100 |
|
+++ builtins/common.c 2014-03-01 12:28:01.684059100 +0100 |
|
@@ -553,10 +553,11 @@ |
|
|
|
if (the_current_working_directory == 0) |
|
{ |
|
+ char *t = xmalloc(PATH_MAX); |
|
#if defined (GETCWD_BROKEN) |
|
- the_current_working_directory = getcwd (0, PATH_MAX); |
|
+ the_current_working_directory = getcwd (t, PATH_MAX); |
|
#else |
|
- the_current_working_directory = getcwd (0, 0); |
|
+ the_current_working_directory = getcwd (t, PATH_MAX); |
|
#endif |
|
if (the_current_working_directory == 0) |
|
{ |
|
|
|
----------------------------------------------------------------------------- |
|
|
|
Fix building under Linux. |
|
|
|
Index: externs.h |
|
--- externs.h.orig 2014-01-02 20:58:20.000000000 +0100 |
|
+++ externs.h 2014-03-01 12:28:01.684059100 +0100 |
|
@@ -25,6 +25,7 @@ |
|
# define _EXTERNS_H_ |
|
|
|
#include "stdc.h" |
|
+#include <stdio.h> |
|
|
|
/* Functions from expr.c. */ |
|
extern intmax_t evalexp __P((char *, int *)); |
|
|
|
|