diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-06-15 20:29:33 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-06-15 20:44:44 +0200 |
| commit | f8fac7b28e2adb3a7a7ab7f7f28dd764f9c8ea7a (patch) | |
| tree | 67133d81bc54c1d773a2919e5d81120f770b26fb /man/man3/getsubopt.3 | |
| parent | 6fc32a0a6ae2cedf2e954b8b48cf8ba0d5ddf2a1 (diff) | |
| download | man-pages-f8fac7b28e2adb3a7a7ab7f7f28dd764f9c8ea7a.tar.gz | |
man/: srcfix: Use \[rs] instead of \e
Scripted change:
$ find man -type f \
| xargs grep -l '\\e' \
| xargs sed -i 's/\\e/\\[rs]/g';
Link: <https://lore.kernel.org/linux-man/20240611122453.qn6jyl4go4bvwkqm@illithid/>
Suggested-by: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/getsubopt.3')
| -rw-r--r-- | man/man3/getsubopt.3 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/man/man3/getsubopt.3 b/man/man3/getsubopt.3 index e5da554055..74d0f98b25 100644 --- a/man/man3/getsubopt.3 +++ b/man/man3/getsubopt.3 @@ -108,7 +108,7 @@ When returns, .I optionp points to the next suboption, -or to the null byte (\[aq]\e0\[aq]) at the end of the +or to the null byte (\[aq]\[rs]0\[aq]) at the end of the string if the last suboption was just processed. .SH RETURN VALUE If the first suboption in @@ -191,7 +191,7 @@ main(int argc, char *argv[]) switch (opt) { case \[aq]o\[aq]: subopts = optarg; - while (*subopts != \[aq]\e0\[aq] && !errfnd) { + while (*subopts != \[aq]\[rs]0\[aq] && !errfnd) { \& switch (getsubopt(&subopts, token, &value)) { case RO_OPT: @@ -205,7 +205,7 @@ main(int argc, char *argv[]) case NAME_OPT: if (value == NULL) { fprintf(stderr, - "Missing value for suboption \[aq]%s\[aq]\en", + "Missing value for suboption \[aq]%s\[aq]\[rs]n", token[NAME_OPT]); errfnd = 1; continue; @@ -216,14 +216,14 @@ main(int argc, char *argv[]) \& default: fprintf(stderr, - "No match found for token: /%s/\en", value); + "No match found for token: /%s/\[rs]n", value); errfnd = 1; break; } } if (readwrite && readonly) { fprintf(stderr, - "Only one of \[aq]%s\[aq] and \[aq]%s\[aq] can be specified\en", + "Only one of \[aq]%s\[aq] and \[aq]%s\[aq] can be specified\[rs]n", token[RO_OPT], token[RW_OPT]); errfnd = 1; } @@ -235,9 +235,9 @@ main(int argc, char *argv[]) } \& if (errfnd || argc == 1) { - fprintf(stderr, "\enUsage: %s \-o <suboptstring>\en", argv[0]); + fprintf(stderr, "\[rs]nUsage: %s \-o <suboptstring>\[rs]n", argv[0]); fprintf(stderr, - "suboptions are \[aq]ro\[aq], \[aq]rw\[aq], and \[aq]name=<value>\[aq]\en"); + "suboptions are \[aq]ro\[aq], \[aq]rw\[aq], and \[aq]name=<value>\[aq]\[rs]n"); exit(EXIT_FAILURE); } \& |
