Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-12-19 | First stab at sort -V | Rob Landley | |
2018-12-19 | Fix sort -x attached to a key. | Rob Landley | |
2018-12-04 | Add FLAG(x) macro, expanding to (toys.optflags & FLAG_##x) | Rob Landley | |
2018-12-04 | Clean up some --help formatting. | Elliott Hughes | |
Be consistent about upper versus lower case. (Upper seems to have the majority, so I went with that, though I'm happy to provide the opposite patch as long as we're consistent!) Be consistent about using \t. (Though saving a few bytes seems like it might be better done in the code that generates help.h rather than directly in the source, since tabs make careful ASCII art layout hard enough that we regularly have things misaligned.) Remove trailing periods (most of which seem to have been added by me). Always use the US "human readable" rather than my British "human-readable", and be more consistent about declaring whether we're showing multiples of 1000 or 1024. Just say "verbose" rather than adding a useless "mode" or "output". | |||
2018-12-04 | Remove CFG_SORT_BIG, just always do that. | Rob Landley | |
2018-08-25 | Coding style change: 1) Use argument letter for variable names filled out by | Rob Landley | |
that argument (so "t:" fills out TT.t), 2) go ahead and collate arguments of same type on same line. (Order's guaranteed by C99 either way.) | |||
2017-05-26 | Be more consistent about periods in help text. | Elliott Hughes | |
2016-12-25 | Fix a bug for sort. When the key_separator is not space, the sort ↵ | wxj | |
commandline tool fails to sort by the 3rd,4th,etc column. For example: when you exec $ sort -t',' -k 3n on a file which cotains: 1,2,3,4 2,3,4,1 4,1,2,3 3,4,1,2 you got: 4,1,2,3 1,2,3,4 2,3,4,1 3,4,1,2 but the expected output should be: 3,4,1,2 4,1,2,3 1,2,3,4 2,3,4,1 The bug is due to the dependency of "isspace(str[end])" at line 113. When searching for the non-space key_separator, the search stopped just at the position of first key_separator it met. The bug can be easily fixed by adding "end++" when the search have found one separator and exit the for loop. | |||
2016-01-15 | Fix sort -f, add tests, make TEST_HOST pass new tests. | Rob Landley | |
2015-07-06 | Avoid integer overflow with insane input data. | Rob Landley | |
2015-07-05 | Kylie McClain pointed out that -z affects both input and output. | Rob Landley | |
Can't say I'm happy with the API (-z and -Z to keep them independent would be nice), but compatibility with what exists trumps having a good API... | |||
2015-03-13 | Clean up sort help text. | Rob Landley | |
Use tabs for option indent and don't have -g show up in menu (TOYBOX_FLOAT is the decision). | |||
2014-01-29 | More elaborate help text collating logic. | Rob Landley | |
2012-11-13 | Reindent to two spaces per level. Remove vi: directives that haven't worked ↵ | Rob Landley | |
right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring. | |||
2012-10-08 | New build infrastructure to generate FLAG_ macros and TT alias, #define ↵ | Rob Landley | |
FOR_commandname before #including toys.h to trigger it. Rename DEFINE_GLOBALS() to just GLOBALS() (because I could never remember if it was DECLARE_GLOBALS). Convert existing commands to use new infrastructure, and replace optflag constants with FLAG_ macros where appropriate. | |||
2012-08-25 | Regularize command headers, update links to standards documents. | Rob Landley | |
2012-08-25 | Move commands into "posix", "lsb", and "other" menus/directories. | Rob Landley | |