Pádraig Brady
760bc6f7e7
truncate: ignore whitespace in --size parameters
...
Without this, `truncate -s '> -1' F` would truncate F to length 0,
and `truncate -s " +1" F` would truncate F to 1 byte. Now, each
elicits a diagnostic.
* src/truncate.c: Skip leading white space in the --size option
argument and any white space after one of the relative modifiers,
so that the presence of a +/- modifier can be detected reliably.
* tests/misc/truncate-parameters: Add tests for the above.
2008-06-30 10:23:17 +02:00
..
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-06-16 13:42:01 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-06-12 21:03:05 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-06-06 14:16:45 +02:00
2008-05-27 13:48:32 +02:00
2008-06-02 14:40:26 +02:00
2008-06-08 12:11:47 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-06-01 16:55:11 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-06-13 23:06:03 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-06-19 09:20:31 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-06-17 08:50:41 +02:00
2008-06-20 08:47:28 +02:00
2008-05-27 13:48:32 +02:00
2008-06-08 12:11:47 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-06-10 08:27:52 +02:00
2008-06-27 17:46:52 +02:00
2008-05-17 08:27:58 +02:00
2008-06-06 14:16:45 +02:00
2008-06-06 14:16:45 +02:00
2008-06-10 08:32:52 +02:00
2008-06-06 14:16:45 +02:00
2008-06-06 14:16:45 +02:00
2008-06-06 14:16:45 +02:00
2008-06-06 14:16:45 +02:00
2008-06-30 10:23:17 +02:00
2008-06-06 14:16:45 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-06-08 12:11:47 +02:00
2008-06-08 12:11:47 +02:00