commit bash-20131127 snapshot

This commit is contained in:
Chet Ramey
2013-12-16 11:09:49 -05:00
parent c51b384fc7
commit 8aaae10d7a
6 changed files with 13248 additions and 14 deletions
+13
View File
@@ -5386,3 +5386,16 @@ builtins/printf.def
- bind_printf_variable: make sure that the variable assigned to is
no longer marked as invisible. Fixes bug reported by NBaH
<nbah@sfr.fr>
11/28
-----
jobs.c
- delete_old_job: fix off-by-one error in job index in call to
internal_warning. Bug report from Peter Cordes <peter@cordes.ca>
11/30
-----
doc/bashref.texi
- add string to description of special parameters with name of
special parameter prefixed by a $, so you can search for $#,
for instance
+5 -4
View File
@@ -5387,7 +5387,8 @@ builtins/printf.def
no longer marked as invisible. Fixes bug reported by NBaH
<nbah@sfr.fr>
arrayfunc.c
- assign_array_element_internal: make sure that assigning an array
element means that the array itself is no longer marked as
invisible
11/28
-----
jobs.c
- delete_old_job: fix off-by-one error in job index in call to
internal_warning. Bug report from Peter Cordes <peter@cordes.ca>
+18 -9
View File
@@ -1565,7 +1565,8 @@ only be referenced; assignment to them is not allowed.
@vtable @code
@item *
Expands to the positional parameters, starting from one. When the
@vindex $*
($*) Expands to the positional parameters, starting from one. When the
expansion occurs within double quotes, it expands to a single word
with the value of each parameter separated by the first character
of the @env{IFS}
@@ -1579,7 +1580,8 @@ separators.
@item @@
Expands to the positional parameters, starting from one. When the
@vindex $@@
($@@) Expands to the positional parameters, starting from one. When the
expansion occurs within double quotes, each parameter expands to a
separate word. That is, @code{"$@@"} is equivalent to
@code{"$1" "$2" @dots{}}.
@@ -1592,29 +1594,35 @@ When there are no positional parameters, @code{"$@@"} and
expand to nothing (i.e., they are removed).
@item #
Expands to the number of positional parameters in decimal.
@vindex $#
($#) Expands to the number of positional parameters in decimal.
@item ?
Expands to the exit status of the most recently executed foreground
@vindex $?
($?) Expands to the exit status of the most recently executed foreground
pipeline.
@item -
(A hyphen.) Expands to the current option flags as specified upon
@vindex $-
($-, a hyphen.) Expands to the current option flags as specified upon
invocation, by the @code{set}
builtin command, or those set by the shell itself
(such as the @option{-i} option).
@item $
Expands to the process @sc{id} of the shell. In a @code{()} subshell, it
@vindex $$
($$) Expands to the process @sc{id} of the shell. In a @code{()} subshell, it
expands to the process @sc{id} of the invoking shell, not the subshell.
@item !
Expands to the process @sc{id} of the job most recently placed into the
@vindex $!
($!) Expands to the process @sc{id} of the job most recently placed into the
background, whether executed as an asynchronous command or using
the @code{bg} builtin (@pxref{Job Control Builtins}).
@item 0
Expands to the name of the shell or shell script. This is set at
@vindex $0
($0) Expands to the name of the shell or shell script. This is set at
shell initialization. If Bash is invoked with a file of commands
(@pxref{Shell Scripts}), @code{$0} is set to the name of that file.
If Bash is started with the @option{-c} option (@pxref{Invoking Bash}),
@@ -1623,7 +1631,8 @@ executed, if one is present. Otherwise, it is set
to the filename used to invoke Bash, as given by argument zero.
@item _
(An underscore.)
@vindex $_
($_, an underscore.)
At shell startup, set to the absolute pathname used to invoke the
shell or shell script being executed as passed in the environment
or argument list.
+8736
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -889,7 +889,9 @@ delete_old_job (pid)
delete_job (job, DEL_NOBGPID);
else
{
internal_warning (_("forked pid %d appears in running job %d"), pid, job);
#ifdef DEBUG
internal_warning (_("forked pid %d appears in running job %d"), pid, job+1);
#endif
if (p)
p->pid = 0;
}
+4473
View File
File diff suppressed because it is too large Load Diff