This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Commit 0516f83
committed
Avoid non-standard escape sequences in tr command
POSIX says
The <backslash>-escape sequences in Escape Sequences and
Associated Actions ( '\\', '\a', '\b', '\f', '\n', '\r', '\t',
'\v' ) shall be supported. The results of using any other
character, other than an octal digit, following the <backslash>
are unspecified. Also, if there is no character following the
<backslash>, the results are unspecified.
Instead, just use `--` to separate options and operands, since tr(1)
is required to conform to the Utility Syntax Guidelines.1 parent 9f66c14 commit 0516f83
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
0 commit comments