bash-5.1 distribution sources and documentation

This commit is contained in:
Chet Ramey
2020-12-06 15:51:17 -05:00
parent 36f2c406ff
commit 8868edaf22
828 changed files with 94641 additions and 56509 deletions

View File

@@ -29,7 +29,7 @@ _aindex=0
#
# Declare a function ($1) to be autoloaded from a file ($2) when it is first
# called. This defines a `temporary' function that will `.' the file
# containg the real function definition, then execute that new definition with
# containing the real function definition, then execute that new definition with
# the arguments given to this `fake' function. The autoload function defined
# by the file and the file itself *must* be named identically.
#

View File

@@ -383,7 +383,7 @@ OPTIONS
'theCharCount=\$(wc -c \$theFuncFile)'
for each funcion and
for each function and
if \$theCharCount < \$AUTOLOAD_SHIM_OVERHEAD
@@ -416,7 +416,7 @@ NOTES
backticks or $(), or in a script that is not being sourced into the
current environment. If you have not previously called the function
in question at your command line or in a script that was sourced into
the current envirnoment, then the various subshells are going to
the current environment, then the various subshells are going to
encounter the shim and replace with the real code before executing.
Remember, however, that environment modifications that occur in a
@@ -490,9 +490,9 @@ NOTES
matter how hard you try, your autoloaded functions will be
unavailable to you, even if you run 'autoload -x -f'. The typical
condition for this is starting up not a subshell, but a brand new
DIFFERENT shell. And the typical example of this is git extentions.
DIFFERENT shell. And the typical example of this is git extensions.
At the time of this writing, git extentions work by taking a command
At the time of this writing, git extensions work by taking a command
'git foo' and looking for a file 'git-foo' on the path. 'git' then
executes 'git-foo' in a new shell - it executes your command in
/bin/sh. That's not a subshell of your process. It will not get your

View File

@@ -1,4 +1,4 @@
# C-shell compatabilty package.
# C-shell compatibilty package.
# setenv VAR VALUE
function setenv ()
{

View File

@@ -20,7 +20,7 @@
isnum2()
{
case "$1" in
'[-+]' | '') return 1;; # empty or bare `-' or `+'
[-+] | '') return 1;; # empty or bare `-' or `+'
[-+]*[!0-9]*) return 1;; # non-digit with leading sign
[-+]*) return 0;; # OK
*[!0-9]*) return 1;; # non-digit

View File

@@ -1,6 +1,6 @@
shcat()
{
while read -r line
while IFS= read -r line
do
echo "$line"
done

View File

@@ -1,8 +1,8 @@
shcat()
{
while read -r line
while read -r
do
echo "$line"
echo "$REPLY"
done
}

View File

@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Sort the positional paramters.
# Sort the positional parameters.
# Make sure the positional parameters are passed as arguments to the function.
# If -u is the first arg, remove duplicate array members.
sort_posparams()