aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/expand.c
AgeCommit message (Collapse)Author
2019-02-23Bumper typo cleanup.Elliott Hughes
Inspired by some of the small patches that have gone by recently. Limited to only things found in `generated/help.h`, plus a wider cleanup for the more common "milisecond" typo.
2018-08-31Convert option style.Rob Landley
2017-09-05Replace remaining mb*towc() calls with utf8towc().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.
2014-06-09When locale is enabled, sprintf("%.123s", str) is counting characters, not ↵Rob Landley
bytes, so we can't globally enable locale without opening stack/heap smashing vulnerabilities. Make commands individually request setlocale() using TOYFLAGS instead.
2013-09-09Minor cosmetic tweaks to expand.Rob Landley
Working my way through the to-review list that predates the "pending" directory. This gets expand off my to-review list. (Proof that "need to review" doesn't mean it's in bad shape, this command was fine. Changed capitalization in the help text because I'm trying to have "user supplies this value" be all caps, switched a read() to readall() although I'm not sure modern kernels actually allow -EINTR to generate zero length reads anymore, and since most of the loopfiles() target functions are called do_commandname() changed the name to that just so it's regular. None of the changes are actually important. :)
2013-01-02Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out ↵Rob Landley
other places that were setting it that no longer need to.
2012-12-01First guess at what internationalization support for expand would look like.Rob Landley
2012-12-01Would the compiler like to warn me about declaring two variables with the ↵Rob Landley
same name in the same function? No? Carry on then...
2012-12-01Re-add backspace support to expand (oops) and fix test to expect data plus ↵Rob Landley
backspace characters rather than the chracters cancelling each other out before output.
2012-11-30Largeish rewrite of expand, mostly described on the mailing list.Rob Landley
2012-11-27First round of expand cleanups.Rob Landley
2012-11-23expand: handle backspace.Jonathan Clairembault
2012-11-23Add expand command as described in POSIX-2008.Jonathan Clairembault
Erratum: Do not handle backspace.