mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-28 07:59:50 +02:00
commit bash-20160304 snapshot
This commit is contained in:
+9
-1
@@ -10190,7 +10190,7 @@ shell.c
|
||||
-----
|
||||
variables.c
|
||||
- initialize_shell_variables: don't inherit PS4 from the environment
|
||||
if the shell is running with euid == 0; just reset it to `+'. This
|
||||
if the shell is running with euid == 0; just reset it to `+ '. This
|
||||
is a known potential vulnerability, since PS4 expansion performs
|
||||
command substitution in the root shell's context before displaying
|
||||
it. Discussion started by up201407890@alunos.dcc.fc.up.pt
|
||||
@@ -10544,3 +10544,11 @@ doc/bash.1,lib/readline/doc/{readline.3,rluser.texi}
|
||||
- output-meta: modify the description to note that readline will turn
|
||||
the default to on if the locale contains eight-bit characters. From
|
||||
a message from Branden Robinson <g.branden.robinson@gmail.com>
|
||||
|
||||
3/6
|
||||
---
|
||||
examples/loadables/Makefile.in
|
||||
- install-dev: make installdirs a prerequisite; don't rely on the
|
||||
install-supported target to create it first. Bug with parallel
|
||||
install (`make -j 4 install') reported by Chris Staub
|
||||
<cstaub67@gmail.com>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
This is the Bash FAQ, version 4.13, for Bash version 4.3.
|
||||
This is the Bash FAQ, version 4.14, for Bash version 4.4.
|
||||
|
||||
This document contains a set of frequently-asked questions concerning
|
||||
Bash, the GNU Bourne-Again Shell. Bash is a freely-available command
|
||||
@@ -2169,11 +2169,17 @@ You may also need
|
||||
|
||||
Finally, you need to tell readline that you will be inputting and
|
||||
displaying eight-bit characters. You use readline variables to do
|
||||
this. These variables can be set in your .inputrc or using the bash
|
||||
this. convert-meta says what to do if you read a character with its
|
||||
eighth bit set. input-meta says whether to permit characters with the
|
||||
eighth bit at all. output-meta determines how to display characters
|
||||
with the eighth bit set: if on, they are output directly; if it is off,
|
||||
such characters are displayed as a meta-prefixed escape sequence.
|
||||
|
||||
These variables can be set in your .inputrc or using the bash
|
||||
`bind' builtin. Here's an example using `bind':
|
||||
|
||||
bash$ bind 'set convert-meta off'
|
||||
bash$ bind 'set meta-flag on'
|
||||
bash$ bind 'set input-meta on'
|
||||
bash$ bind 'set output-meta on'
|
||||
|
||||
The `set' commands between the single quotes may also be placed
|
||||
|
||||
@@ -234,7 +234,7 @@ distclean maintainer-clean: clean
|
||||
installdirs:
|
||||
@${SHELL} $(SUPPORT_SRC)mkinstalldirs $(DESTDIR)$(loadablesdir)
|
||||
|
||||
install-dev:
|
||||
install-dev: installdirs
|
||||
@$(INSTALL_DATA) Makefile.inc $(DESTDIR)$(loadablesdir)/Makefile.inc
|
||||
@( cd $(BUILD_DIR) && ${MAKE} ${MFLAGS} DESTDIR="$(DESTDIR)" install-headers)
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
* references to it do not attempt to access memory that is no longer part
|
||||
* of this process's address space.
|
||||
*/
|
||||
#include <config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
+3
-3
@@ -34,9 +34,8 @@
|
||||
|
||||
|
||||
/* is_basic(c) tests whether the single-byte character c is in the
|
||||
ISO C "basic character set".
|
||||
This is a convenience function, and is in this file only to share code
|
||||
between mbiter_multi.h and mbfile_multi.h. */
|
||||
ISO C "basic character set". */
|
||||
|
||||
#if (' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
|
||||
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
|
||||
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
|
||||
@@ -79,6 +78,7 @@ is_basic (char c)
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
case '\b': case '\r': case '\n':
|
||||
case '\t': case '\v': case '\f':
|
||||
case ' ': case '!': case '"': case '#': case '%':
|
||||
case '&': case '\'': case '(': case ')': case '*':
|
||||
|
||||
@@ -19,8 +19,13 @@ echo $?
|
||||
echo $?
|
||||
|
||||
# pipe
|
||||
if [ -e /dev/stdin ]; then
|
||||
echo "echo three - OK" | . /dev/stdin
|
||||
echo $?
|
||||
else
|
||||
# no /dev/stdin, just fake it
|
||||
echo "three - OK" ; echo 0
|
||||
fi
|
||||
|
||||
# FIFO
|
||||
mkfifo $TMPDIR/fifo-$$
|
||||
|
||||
+1
-1
@@ -505,7 +505,7 @@ initialize_shell_variables (env, privmode)
|
||||
}
|
||||
|
||||
if (current_user.euid == 0)
|
||||
bind_variable ("PS4", "+", 0);
|
||||
bind_variable ("PS4", "+ ", 0);
|
||||
else
|
||||
set_if_not ("PS4", "+ ");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user