diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-04-28 08:43:53 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-04-28 08:43:53 +0000 |
| commit | ff3a5ecf6f6bf9bb87682272f3eb800329572833 (patch) | |
| tree | eb3c4a810eca139fce134a40abc517be7198e78f /doc/case.html | |
| parent | 7365249a1460289f0a047e12a0575ef326df194b (diff) | |
| download | execline-ff3a5ecf6f6bf9bb87682272f3eb800329572833.tar.gz | |
Latest batch of fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/case.html')
| -rw-r--r-- | doc/case.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/case.html b/doc/case.html index 8ae817b..5cbca2c 100644 --- a/doc/case.html +++ b/doc/case.html @@ -59,16 +59,16 @@ is empty. </li> <ul> <li> <tt>-s</tt> : Shell matching. The <em>regex</em> words will not be interpreted as regular expressions, but as shell expressions to be interpreted -via <a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/fnmatch.html">fnmatch()</a>. +via <a href="https://pubs.opengroup.org/onlinepubs/9799919799/functions/fnmatch.html">fnmatch()</a>. The other options also change meanings, see the <em>Shell matching</em> section below. </li> <li> <tt>-S</tt> : Regular expression matching. This is the default. This section, and all of the sections below except the <em>Shell matching</em> one, assumes that it is the case. </li> <li> <tt>-e</tt> : Interpret the <em>regex</em> words as -<a href="https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_03">basic +<a href="https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap09.html#tag_09_03">basic regular expressions</a>. </li> <li> <tt>-E</tt> : Interpret the <em>regex</em> words as -<a href="https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04">extended +<a href="https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap09.html#tag_09_04">extended regular expressions</a>. This is the default. </li> <li> <tt>-i</tt> : Perform case-insensitive matches. </li> <li> <tt>-N</tt> : Make the matching expression and @@ -129,7 +129,7 @@ to the output of the <tt>/usr/bin/env</tt> command: If the <tt>-s</tt> option has been given to <tt>case</tt>, then the <em>regex</em> words are not interpreted as regular expressions, but as shell patterns, as is performed by the shell's -<a href="https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_04_05">case</a> +<a href="https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_18_09_04_05">case</a> conditional construct. This has the following consequences: </p> @@ -138,10 +138,10 @@ conditional construct. This has the following consequences: <li> <em>prog...</em> is always executed with an unmodified environment. </li> <li> The options to the <tt>case</tt> command change meanings: instead of controlling how the <em>regex</em> regular expressions are interpreted by the -<a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/regcomp.html">regcomp()</a> +<a href="https://pubs.opengroup.org/onlinepubs/9799919799/functions/regcomp.html">regcomp()</a> primitive, they now control how <em>value</em> is matched against the <em>regex</em> patterns (which are not regular expressions!) via the -<a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/fnmatch.html">fnmatch()</a> +<a href="https://pubs.opengroup.org/onlinepubs/9799919799/functions/fnmatch.html">fnmatch()</a> primitive. Namely: <ul> <li> <tt>-e</tt> : Treat a backslash as an ordinary character; do not allow |
