mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-31 07:23:52 +02:00
builtins now return success if supplied --help; use groff to build HTML man pages; reset mbstate if $'...' strings read an invalid multibyte sequence; read -t 0 now looks at other options (-n/-N/-d) and sets the terminal state appropriately
This commit is contained in:
@@ -33,31 +33,3 @@ add-alias ()
|
||||
eval alias $name=\'$value\'
|
||||
alias $name
|
||||
}
|
||||
|
||||
# "repeat" command. Like:
|
||||
#
|
||||
# repeat 10 echo foo
|
||||
repeat ()
|
||||
{
|
||||
local count="$1" i;
|
||||
shift;
|
||||
for i in $(seq 1 "$count");
|
||||
do
|
||||
eval "$@";
|
||||
done
|
||||
}
|
||||
|
||||
# Subfunction needed by `repeat'.
|
||||
seq ()
|
||||
{
|
||||
local lower upper output;
|
||||
lower=$1 upper=$2;
|
||||
|
||||
if [ $lower -ge $upper ]; then return; fi
|
||||
while [ $lower -le $upper ];
|
||||
do
|
||||
echo -n "$lower "
|
||||
lower=$(($lower + 1))
|
||||
done
|
||||
echo "$lower"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user