diff -u bash-4.2.is/doc/bashref.texi bash-4.2.new/doc/bashref.texi --- bash-4.2.is/doc/bashref.texi 2011-09-11 11:10:58.000000000 +0200 +++ bash-4.2.new/doc/bashref.texi 2011-09-11 11:19:27.000000000 +0200 @@ -1562,7 +1562,7 @@ Brace expansion is a mechanism by which arbitrary strings may be generated. This mechanism is similar to @var{filename expansion} (@pxref{Filename Expansion}), -but the file names generated need not exist. +but the filenames generated need not exist. Patterns to be brace expanded take the form of an optional @var{preamble}, followed by either a series of comma-separated strings or a seqeunce expression between a pair of braces, @@ -1662,7 +1662,7 @@ Each variable assignment is checked for unquoted tilde-prefixes immediately following a @samp{:} or the first @samp{=}. In these cases, tilde expansion is also performed. -Consequently, one may use file names with tildes in assignments to +Consequently, one may use filenames with tildes in assignments to @env{PATH}, @env{MAILPATH}, and @env{CDPATH}, and the shell assigns the expanded value. @@ -2052,7 +2052,7 @@ If one of these characters appears, then the word is regarded as a @var{pattern}, and replaced with an alphabetically sorted list of -file names matching the pattern. If no matching file names are found, +filenames matching the pattern. If no matching filenames are found, and the shell option @code{nullglob} is disabled, the word is left unchanged. If the @code{nullglob} option is set, and no matches are found, the word @@ -2065,7 +2065,7 @@ When a pattern is used for filename expansion, the character @samp{.} at the start of a filename or immediately following a slash must be matched explicitly, unless the shell option @code{dotglob} is set. -When matching a file name, the slash character must always be +When matching a filename, the slash character must always be matched explicitly. In other cases, the @samp{.} character is not treated specially. @@ -3059,7 +3059,7 @@ @code{getopts} is used by shell scripts to parse positional parameters. @var{optstring} contains the option characters to be recognized; if a character is followed by a colon, the option is expected to have an -argument, which should be separated from it by white space. +argument, which should be separated from it by whitespace. The colon (@samp{:}) and question mark (@samp{?}) may not be used as option characters. Each time it is invoked, @code{getopts} @@ -3566,7 +3566,7 @@ If either the @option{-V} or @option{-v} option is supplied, a description of @var{command} is printed. The @option{-v} option -causes a single word indicating the command or file name used to +causes a single word indicating the command or filename used to invoke @var{command} to be displayed; the @option{-V} option produces a more verbose description. In this case, the return status is zero if @var{command} is found, and non-zero if not. @@ -3595,7 +3595,7 @@ The @option{-F} option inhibits the display of function definitions; only the function name and attributes are printed. If the @code{extdebug} shell option is enabled using @code{shopt} -(@pxref{The Shopt Builtin}), the source file name and line number where +(@pxref{The Shopt Builtin}), the source filename and line number where the function is defined are displayed as well. @option{-F} implies @option{-f}. @@ -4608,7 +4608,7 @@ @enumerate @item The @option{-F} option to the @code{declare} builtin (@pxref{Bash Builtins}) -displays the source file name and line number corresponding to each function +displays the source filename and line number corresponding to each function name supplied as an argument. @item @@ -4851,7 +4851,7 @@ A colon-separated list of filenames which the shell periodically checks for new mail. Each list entry can specify the message that is printed when new mail -arrives in the mail file by separating the file name from the message with +arrives in the mail file by separating the filename from the message with a @samp{?}. When used in the text of the message, @code{$_} expands to the name of the current mail file. @@ -5131,9 +5131,9 @@ @item FIGNORE A colon-separated list of suffixes to ignore when performing filename completion. -A file name whose suffix matches one of the entries in +A filename whose suffix matches one of the entries in @env{FIGNORE} -is excluded from the list of matched file names. A sample +is excluded from the list of matched filenames. A sample value is @samp{.o:~} @item FUNCNAME @@ -5361,10 +5361,10 @@ contain only a single command). @item POSIXLY_CORRECT -If this variable is in the environment when @code{bash} starts, the shell +If this variable is in the environment when Bash starts, the shell enters @sc{posix} mode (@pxref{Bash POSIX Mode}) before reading the startup files, as if the @option{--posix} invocation option had been supplied. -If it is set while the shell is running, @code{bash} enables @sc{posix} mode, +If it is set while the shell is running, Bash enables @sc{posix} mode, as if the command @example @code{set -o posix} @@ -5694,7 +5694,7 @@ This section describes how Bash executes its startup files. If any of the files exist but cannot be read, Bash reports an error. -Tildes are expanded in file names as described above under +Tildes are expanded in filenames as described above under Tilde Expansion (@pxref{Tilde Expansion}). Interactive shells are described in @ref{Interactive Shells}. @@ -5740,7 +5740,7 @@ @end example @noindent but the value of the @env{PATH} variable is not used to search for the -file name. +filename. As noted above, if a non-interactive shell is invoked with the @option{--login} option, Bash attempts to read and execute commands from the