]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
commit bash-20061206 snapshot
authorChet Ramey <chet.ramey@case.edu>
Wed, 7 Dec 2011 14:01:16 +0000 (09:01 -0500)
committerChet Ramey <chet.ramey@case.edu>
Wed, 7 Dec 2011 14:01:16 +0000 (09:01 -0500)
CWRU/CWRU.chlog
doc/bash.1
doc/bashref.texi
lib/sh/snprintf.c
tests/RUN-ONE-TEST

index 173e876c541673f8f45bca32354783bc78ce8ed2..6382012e96a8332156fef321a0477869ec00e602 100644 (file)
@@ -13774,7 +13774,7 @@ shell.c
          <mike.stroyan@hp.com>
 
 doc/bashref.texi
-       - fix typos and misspellings sent in by Brian Gough
+       - fixes for typos and misspellings sent in by Brian Gough
 
                                   10/24
                                   -----
@@ -13829,7 +13829,7 @@ execute_cmd.c
                                   11/7
                                   ----
 lib/tilde/tilde.c
-lib/readline/{util,undo,callback,input,isearch,kill
+lib/readline/{util,undo,callback,input,isearch,kill}.c
        - make sure that memory allocated with xmalloc is freed with xfree
 
                                   11/9
index bd29b8aac22d535b7c25b4e849add8e16ece74bc..bbf08ed9b27b302ff2ebad60521be9906c3b7bac 100644 (file)
@@ -5985,8 +5985,9 @@ no alias has been defined.
 Resume each suspended job \fIjobspec\fP in the background, as if it
 had been started with
 .BR & .
-If \fIjobspec\fP is not present, the shell's notion of the
-\fIcurrent job\fP is used.
+If
+.I jobspec
+is not present, the shell's notion of the \fIcurrent job\fP is used.
 .B bg
 .I jobspec
 returns 0 unless run when job control is disabled or, when run with
@@ -6572,6 +6573,10 @@ of the directory stack.
 Without options, each
 .I jobspec
 is removed from the table of active jobs.
+If
+.I jobspec
+is not present, and neither \fB\-a\fB nor \fB\-r\fP is supplied,
+the shell's notion of the \fIcurrent job\fP is used.
 If the \fB\-h\fP option is given, each
 .I jobspec
 is not removed from the table, but is marked so that
@@ -7587,12 +7592,14 @@ or
 .B until
 keyword, 
 part of the test in an
-.I if
+.B if
 statement, part of a
 .B &&
 or
 .B \(bv\(bv
-list, or if the command's return value is
+list,
+any command in a pipeline but the last,
+or if the command's return value is
 being inverted via
 .BR ! .
 A trap on \fBERR\fP, if set, is executed before the shell exits.
index 2460df768b614ae0ec64235fffed960d5d801b32..f0b39afa3549d719c53f05af5048cc6112af6d68 100644 (file)
@@ -3967,10 +3967,11 @@ immediately, rather than before printing the next primary prompt.
 @item -e
 Exit immediately if a simple command (@pxref{Simple Commands}) exits
 with a non-zero status, unless the command that fails is part of the
-command list immediately following a @code{while} or @code{until}
-keyword, part of the test in an @code{if} statement,
-part of a @code{&&} or @code{||} list, or if the command's return
-status is being inverted using @code{!}.
+command list immediately following a @code{while} or @code{until} keyword,
+part of the test in an @code{if} statement,
+part of a @code{&&} or @code{||} list,
+any command in a pipeline but the last,
+or if the command's return status is being inverted using @code{!}.
 A trap on @code{ERR}, if set, is executed before the shell exits.
 
 @item -f
index d05523e6a7f0a9e730b1bdf718a7f5f26cd7fc8b..d24a6c9aaccb6028fd6d2599af68dcad5e23bb0f 100644 (file)
@@ -7,7 +7,7 @@
    Unix snprintf implementation.
    derived from inetutils/libinetutils/snprintf.c Version 1.1
 
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001,2006 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General License as published by
@@ -673,9 +673,8 @@ number(p, d, base)
     p->flags &= ~PF_ZEROPAD;
 
   sd = d;      /* signed for ' ' padding in base 10 */
-  flags = (*p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
-  if (*p->pf == 'x' || *p->pf == 'X')
-    flags |= FL_UNSIGNED;      /* %x, %X treated as unsigned */
+  flags = 0;
+  flags = (*p->pf == 'x' || *p->pf == 'X' || *p->pf == 'o' || *p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
   if (*p->pf == 'X')
     flags |= FL_HEXUPPER;
 
@@ -745,7 +744,7 @@ lnumber(p, d, base)
     p->flags &= ~PF_ZEROPAD;
 
   sd = d;      /* signed for ' ' padding in base 10 */
-  flags = (*p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
+  flags = (*p->pf == 'x' || *p->pf == 'X' || *p->pf == 'o' || *p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
   if (*p->pf == 'X')
     flags |= FL_HEXUPPER;
 
index 72ec06a2c1fd8dde92acea5e8ac773e35f1d061b..3efcf32d68e9722024b6ca9d67f9e81b2aa5ac04 100755 (executable)
@@ -1,4 +1,4 @@
-BUILD_DIR=/usr/local/build/bash/bash-current
+BUILD_DIR=/usr/local/build/chet/bash/bash-current
 THIS_SH=$BUILD_DIR/bash
 PATH=$PATH:$BUILD_DIR