Commit 7ca5f66
committed
feat(truncate): allow negative size values for truncation
- Enable hyphen values in size argument to support negative sizes (e.g., "-1")
- Add test case verifying truncation to empty file with negative size "-1"1 parent 8f62357 commit 7ca5f66
File tree
2 files changed
+12
-0
lines changed- src/uu/truncate/src
- tests/by-util
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
389 | 400 | | |
390 | 401 | | |
391 | 402 | | |
| |||
0 commit comments