Commit b4f12c7
authored
cmp: 0X and 0x are valid hex prefix
* Skip numbers (optional arguments 3 & 4) can be specified in decimal or hex
* When testing on OpenBSD and Linux, "0X" hex prefix is supported, so add it to this version
* I didn't test on NetBSD but the source code calls C strotoll() function, which is documented to accept "0X" [1] [2]
* Tweak POD manual
1. https://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/cmp/cmp.c?annotate=1.21 line128
2. https://man.netbsd.org/strtoll.31 parent f2d8543 commit b4f12c7
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
0 commit comments