alias expansion fix in case statements

This commit is contained in:
Chet Ramey
2021-03-29 10:25:18 -04:00
parent b37342db4f
commit 65822e5011
6 changed files with 46 additions and 9 deletions
+5 -4
View File
@@ -1140,10 +1140,11 @@ quotes (see
.B PARAMETERS
below).
.PP
Words of the form \fB$\fP\(aq\fIstring\fP\(aq are treated specially. The
word expands to \fIstring\fP, with backslash-escaped characters replaced
as specified by the ANSI C standard. Backslash escape sequences, if
present, are decoded as follows:
Character sequences of the form \fB$\fP\(aq\fIstring\fP\(aq are treated
as a special variant of single quotes.
The sequence expands to \fIstring\fP, with backslash-escaped characters
in \fIstring\fP replaced as specified by the ANSI C standard.
Backslash escape sequences, if present, are decoded as follows:
.RS
.PD 0
.TP
+5 -4
View File
@@ -475,10 +475,11 @@ when in double quotes (@pxref{Shell Parameter Expansion}).
@subsubsection ANSI-C Quoting
@cindex quoting, ANSI
Words of the form $'@var{string}' are treated specially. The
word expands to @var{string}, with backslash-escaped characters replaced
as specified by the ANSI C standard. Backslash escape sequences, if
present, are decoded as follows:
Character sequences of the form $'@var{string}' are treated as a special
kind of single quotes.
The sequence expands to @var{string}, with backslash-escaped characters
in @var{string} replaced as specified by the ANSI C standard.
Backslash escape sequences, if present, are decoded as follows:
@table @code
@item \a