mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-12 22:50:49 +02:00
round seconds in command timing information if precision is >= 0; fix for readline word boundaries when quoted command substitutions appear; remove nameref attribute when converting nameref variable into an array; change how help strings are written to builtins.c; change read builtin to update unwind-protect if the input string is reallocated; fix crash when an expansion on the rhs of an assignment statement unsets the variable on the lhs
This commit is contained in:
+14
-2
@@ -1,10 +1,22 @@
|
||||
: ${BUILD_DIR:=/usr/local/build/chet/bash/bash-current}
|
||||
: ${BUILD_DIR:=$PWD}
|
||||
THIS_SH=$BUILD_DIR/bash
|
||||
PATH=$PATH:$BUILD_DIR
|
||||
|
||||
export THIS_SH PATH
|
||||
export THIS_SH PATH BUILD_DIR
|
||||
|
||||
: ${TMPDIR:=/tmp}
|
||||
export TMPDIR
|
||||
|
||||
export BASH_TSTOUT=/tmp/xx
|
||||
rm -f ${BASH_TSTOUT}
|
||||
|
||||
if [ -t 1 ]; then
|
||||
# can't rely on having $'...' or printf understanding \e
|
||||
# bright red background, white foreground text
|
||||
export CSTART=$(printf '\033[01;101;37m') CEND=$(printf '\033[0m')
|
||||
else
|
||||
export CSTART= CEND=
|
||||
fi
|
||||
export TAB=' '
|
||||
|
||||
${THIS_SH} "$@"
|
||||
|
||||
@@ -406,10 +406,10 @@ help: help [-dms] [pattern ...]
|
||||
shift - Shift positional parameters.
|
||||
shift: shift [n]
|
||||
Shift positional parameters.
|
||||
|
||||
|
||||
Rename the positional parameters $N+1,$N+2 ... to $1,$2 ... If N is
|
||||
not given, it is assumed to be 1.
|
||||
|
||||
|
||||
Exit Status:
|
||||
Returns success unless N is negative or greater than $#.
|
||||
builtin: builtin [shell-builtin [arg ...]]
|
||||
@@ -424,9 +424,9 @@ readarray: readarray [-d delim] [-n count] [-O origin] [-s count] [-t] [-u fd] [
|
||||
readonly: readonly [-aAf] [name[=value] ...] or readonly -p
|
||||
:: :
|
||||
Null command.
|
||||
|
||||
|
||||
No effect; the command does nothing.
|
||||
|
||||
|
||||
Exit Status:
|
||||
Always succeeds.
|
||||
NAME
|
||||
@@ -437,9 +437,9 @@ SYNOPSIS
|
||||
|
||||
DESCRIPTION
|
||||
Null command.
|
||||
|
||||
|
||||
No effect; the command does nothing.
|
||||
|
||||
|
||||
Exit Status:
|
||||
Always succeeds.
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
for f ; do
|
||||
echo $f
|
||||
sed 's|warning:|${CSTART}warning${CEND}:|' < $f > zzz && mv zzz $f
|
||||
done
|
||||
Reference in New Issue
Block a user