aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb/seq.c
AgeCommit message (Collapse)Author
2021-02-07Add lots of "static" annotations, make a couple things use FLAG() macros, etc.Rob Landley
2021-01-06seq: always xwrite.Elliott Hughes
Pointed out by the compiler combined with glibc's use of __attribute__((__warn_unused_result__)) on write().
2020-12-18seq.c: fix itoa for INT_MIN in case itoa gets used elsewhere.Elliott Hughes
It can't actually be used for INT_MIN in the current context because the `dd += increment` on line 100 means that even if "last" is INT_MIN, we won't take the fast path because INT_MIN - 1 isn't representable.
2020-12-12Speed up seq: use toybuf for block writes and add an integer fast path.Rob Landley
2018-11-19A few more GLOBALS() single character argument style conversions.Rob Landley
2017-09-09Redo/add seq precision logic.Rob Landley
Josh Gao hit a case where "seq 1000000 1000001" output 1e+06, and while he was there changed several things to work like existing seq implementations. I changed a couple back (commenting out the test cases) until somebody came come up with a reason (or existing use case) to do it that way.
2017-05-26Be more consistent about periods in help text.Elliott Hughes
2017-01-30Cleanup leftover debris.Rob Landley
2017-01-29Izabera suggested seq should multiply to avoid accumulating rounding errorsRob Landley
from incrementing by a double.
2016-02-25Fix more warnings on 32 bit builds.Rob Landley
2016-02-10Add seq -w, suggested by izabera.Rob Landley
2016-01-22Factor out insanitize() from seq.c to next_printf() in lib.Rob Landley
2016-01-05Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable formatRob Landley
checking, and fix up format checking complaints. Added out(type, value) function to stat to avoid a zillion printf typecasts.
2015-09-05Add seq -f tests, tweak help text, and catch one more error case.Rob Landley
2015-09-02seq -f %0-f is a valid pattern.Rob Landley
2015-09-02If you start a git commit and then edit the file more on the filesystemRob Landley
before saving, the updates don't go in the commit. Behavior difference between git and mercurial, that. Good to know.
2015-09-02Sanitize seq -f string.Rob Landley
2012-12-23Whitespace.Rob Landley
2012-12-16Extend seq to support -f (format string) and -s (string separator) as ↵Elie De Brauwer
requested by LSB
2012-11-19Teach option parsing about [groups] of related options.Rob Landley
2012-11-13Reindent 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-08-25Regularize command headers, update links to standards documents.Rob Landley
2012-08-25Move commands into "posix", "lsb", and "other" menus/directories.Rob Landley