summaryrefslogtreecommitdiff
path: root/shells/bash2/patches/patch-ac
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2002-11-25 04:18:47 +0000
committerschmonz <schmonz@pkgsrc.org>2002-11-25 04:18:47 +0000
commit41ed48c4351db913f69a184ed27a4dab72595e9d (patch)
tree0f7d5f9e87f44ed80b3c7a89ec7f196c539f333b /shells/bash2/patches/patch-ac
parent76e473a890368776229f2625590c69aab76789ab (diff)
downloadpkgsrc-41ed48c4351db913f69a184ed27a4dab72595e9d.tar.gz
Update to 2.05b, and fix MASTER_SITES. Lots of changes since 2.05.
Here are some of them, excerpted from NEWS: - New code to handle multibyte characters. - `select' was changed to be more ksh-compatible - There is now a bindable edit-and-execute-command readline command, like the vi-mode `v' command, bound to C-xC-e in emacs mode. - The shell now performs arithmetic in the largest integer size the machine supports (intmax_t), instead of long. - There is a new configuration option `--enable-mem-scramble', controls bash malloc behavior of writing garbage characters into memory at allocation and free time. - The `complete' and `compgen' builtins now have a new `-s/-A service' option to complete on names from /etc/services. - `read' has a new `-u fd' option to read from a specified file descriptor. - The expansion of $LINENO inside a shell function is only relative to the function start if the shell is interactive -- if the shell is running a script, $LINENO expands to the line number in the script. This is as POSIX-2001 requires. - The bash debugger in examples/bashdb has been modified to work with the new DEBUG trap semantics, the command set has been made more gdb-like, and the changes to $LINENO make debugging functions work better. Code from Gary Vaughan. - New [n]<&word- and [n]>&word- redirections from ksh93 -- move fds (dup and close). - The `echo' builtin now accepts \0xxx (zero to three octal digits following the `0') in addition to \xxx (one to three octal digits) for SUSv3/XPG6/ POSIX.1-2001 compliance. - Added support for DESTDIR installation root prefix, so you can do a `make install DESTDIR=bash-root' and do easier binary packaging. - New `-A group/-g' option to complete and compgen; does group name completion. - The ksh-like `ERR' trap has been added. The `ERR' trap will be run whenever the shell would have exited if the -e option were enabled. It is not inherited by shell functions. - configure has a new `--enable-largefile' option, like other GNU utilities. - `for' loops now allow empty word lists after `in', like the latest POSIX drafts require. - The builtin `ulimit' now takes two new non-numeric arguments: `hard', meaning the current hard limit, and `soft', meaning the current soft limit, in addition to `unlimited' Also, there is a "New unwind-protect implementation from Paul Eggert", which I believe obviates the need for two sparc64-related patches.
Diffstat (limited to 'shells/bash2/patches/patch-ac')
-rw-r--r--shells/bash2/patches/patch-ac80
1 files changed, 0 insertions, 80 deletions
diff --git a/shells/bash2/patches/patch-ac b/shells/bash2/patches/patch-ac
deleted file mode 100644
index 3818a702500..00000000000
--- a/shells/bash2/patches/patch-ac
+++ /dev/null
@@ -1,80 +0,0 @@
-$NetBSD: patch-ac,v 1.5 2001/08/30 13:56:28 mrg Exp $
-
---- unwind_prot.c.orig Wed Feb 14 23:00:55 2001
-+++ unwind_prot.c Thu Aug 30 11:24:44 2001
-@@ -51,7 +51,7 @@
- points to this. */
- typedef struct {
- int *variable;
-- char *desired_setting;
-+ UWP desired_setting;
- int size;
- } SAVED_VAR;
-
-@@ -280,8 +280,9 @@
- discard_saved_var (sv)
- SAVED_VAR *sv;
- {
-- if (sv->size != sizeof (int))
-- free (sv->desired_setting);
-+ if (sv->size != sizeof (int) && sv->size != sizeof (short) &&
-+ sv->size != sizeof (char *))
-+ free (sv->desired_setting.p);
- free (sv);
- }
-
-@@ -293,13 +294,16 @@
- restore_variable (sv)
- SAVED_VAR *sv;
- {
-- if (sv->size != sizeof (int))
-- {
-- FASTCOPY ((char *)sv->desired_setting, (char *)sv->variable, sv->size);
-- free (sv->desired_setting);
-- }
-- else
-- *(sv->variable) = (int)sv->desired_setting;
-+ if (sv->size == sizeof (int))
-+ *(int *)(sv->variable) = sv->desired_setting.i;
-+ else if (sv->size == sizeof (short))
-+ *(short *)(sv->variable) = sv->desired_setting.s;
-+ else if (sv->size == sizeof (char *))
-+ *(char **)(sv->variable) = sv->desired_setting.p;
-+ else {
-+ FASTCOPY ((char *)sv->desired_setting.p, (char *)sv->variable, sv->size);
-+ free (sv->desired_setting.p);
-+ }
-
- free (sv);
- }
-@@ -312,19 +316,22 @@
- void
- unwind_protect_var (var, value, size)
- int *var;
-- char *value;
-+ UWP *value;
- int size;
- {
- SAVED_VAR *s = (SAVED_VAR *)xmalloc (sizeof (SAVED_VAR));
-
- s->variable = var;
-- if (size != sizeof (int))
-- {
-- s->desired_setting = (char *)xmalloc (size);
-- FASTCOPY (value, (char *)s->desired_setting, size);
-- }
-- else
-- s->desired_setting = value;
-+ if (size == sizeof (int)) {
-+ s->desired_setting.i = value->i;
-+ } else if (size == sizeof (short)) {
-+ s->desired_setting.s = value->s;
-+ } else if (size == sizeof (char *)) {
-+ s->desired_setting.p = value->p;
-+ } else {
-+ s->desired_setting.p = (char *)xmalloc (size);
-+ FASTCOPY (value, (char *)s->desired_setting.p, size);
-+ }
- s->size = size;
- add_unwind_protect ((Function *)restore_variable, (char *)s);
- }