Commit cb8908e
authored
cmp: restore octal skip values
* The POD manual stated that octal values were supported for options skip1 and skip2, but it didn't work
* Previously cmp used eval() to convert user input into a number; I suspect the octal support was broken when the eval() code was removed
* Octal is supported by NetBSD's cmp
%cp ar ar2
%strace perl cmp ar ar2 0X4f 0117 2> trace
%fgrep '79,' trace
lseek(4, 79, SEEK_SET) = 79
lseek(5, 79, SEEK_SET) = 791 parent 676ccde commit cb8908e
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
262 | | - | |
263 | | - | |
264 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| |||
0 commit comments