This happens with nameref variables referencing variables set to
the empty string.
Fixes bug reported by Arthur200000 <arthur200126@163.com>
+
+ 3/23
+ ----
+doc/{bash.1,bashref.texi}
+ - INVOCATION: add language to make it clear that non-interactive login
+ shells execute ~/.bash_logout if they run the `exit' builtin. From a
+ question from Christoph Anton Mitterer <calestyo@scientia.net>
.\" Case Western Reserve University
.\" chet.ramey@case.edu
.\"
-.\" Last Change: Sat Mar 21 20:10:48 EDT 2015
+.\" Last Change: Mon Mar 23 11:25:25 EDT 2015
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
-.TH BASH 1 "2015 March 21" "GNU Bash 4.4"
+.TH BASH 1 "2015 March 23" "GNU Bash 4.4"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
.B \-\-noprofile
option may be used when the shell is started to inhibit this behavior.
.PP
-When a login shell exits,
+When an interactive login shell exits,
+or a non-interactive login shell executes the \fBexit\fP builtin command,
.B bash
reads and executes commands from the file \fI~/.bash_logout\fP, if it
exists.
The @option{--noprofile} option may be used when the shell is started to
inhibit this behavior.
-When a login shell exits, Bash reads and executes commands from
+When an interactive login shell exits,
+or a non-interactive login shell executes the @code{exit} builtin command,
+Bash reads and executes commands from
the file @file{~/.bash_logout}, if it exists.
@subsubheading Invoked as an interactive non-login shell
Copyright (C) 1988-2015 Free Software Foundation, Inc.
@end ignore
-@set LASTCHANGE Sat Mar 21 20:10:48 EDT 2015
+@set LASTCHANGE Mon Mar 23 11:25:10 EDT 2015
@set EDITION 4.4
@set VERSION 4.4
-@set UPDATED 21 March 2015
+@set UPDATED 23 March 2015
@set UPDATED-MONTH March 2015
command lists. It's a suboptimal solution. */
else if (parser_state & PST_CASESTMT) /* case statement pattern */
return " ";
- else
+ else
return "; "; /* (...) subshell */
}
else if (token_before_that == WORD && two_tokens_ago == FUNCTION)
-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