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:19:27.000000000 +0200 +++ bash-4.2.new/doc/bashref.texi 2011-09-11 11:24:50.000000000 +0200 @@ -4744,7 +4744,7 @@ If set, prompt strings undergo parameter expansion, command substitution, arithmetic expansion, and quote removal after being expanded -as described below (@pxref{Printing a Prompt}). +as described below (@pxref{Controlling the Prompt}). This option is enabled by default. @item restricted_shell @@ -4873,7 +4873,7 @@ @item PS1 The primary prompt string. The default value is @samp{\s-\v\$ }. -@xref{Printing a Prompt}, for the complete list of escape +@xref{Controlling the Prompt}, for the complete list of escape sequences that are expanded before @env{PS1} is displayed. @item PS2 @@ -5383,7 +5383,7 @@ @item PROMPT_DIRTRIM If set to a number greater than zero, the value is used as the number of trailing directory components to retain when expanding the @code{\w} and -@code{\W} prompt string escapes (@pxref{Printing a Prompt}). +@code{\W} prompt string escapes (@pxref{Controlling the Prompt}). Characters removed are replaced with an ellipsis. @item PS3 @@ -5527,7 +5527,7 @@ * Aliases:: Substituting one command for another. * Arrays:: Array Variables. * The Directory Stack:: History of visited directories. -* Printing a Prompt:: Controlling the PS1 string. +* Controlling the Prompt:: Customising the PS1 and other prompt strings. * The Restricted Shell:: A more controlled mode of shell execution. * Bash POSIX Mode:: Making Bash behave more closely to what the POSIX standard specifies. @@ -6489,7 +6489,7 @@ @end table @end table -@node Printing a Prompt +@node Controlling the Prompt @section Controlling the Prompt @cindex prompting @@ -6499,7 +6499,7 @@ value is executed just as if it had been typed on the command line. In addition, the following table describes the special characters which -can appear in the prompt variables: +can appear in the prompt variables @env{PS1} to @env{PS4}: @table @code @item \a @@ -7619,7 +7619,7 @@ @item --enable-prompt-string-decoding Turn on the interpretation of a number of backslash-escaped characters in the @env{$PS1}, @env{$PS2}, @env{$PS3}, and @env{$PS4} prompt -strings. See @ref{Printing a Prompt}, for a complete list of prompt +strings. See @ref{Controlling the Prompt}, for a complete list of prompt string escape sequences. @item --enable-readline @@ -8077,7 +8077,7 @@ @item Bash interprets special backslash-escaped characters in the prompt -strings when interactive (@pxref{Printing a Prompt}). +strings when interactive (@pxref{Controlling the Prompt}). @item The Bash restricted mode is more useful (@pxref{The Restricted Shell});