aboutsummaryrefslogtreecommitdiff
path: root/toys
AgeCommit message (Collapse)Author
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-01Felix Janda pointed out that the r in mbrtowc() stands for "restartable" so ↵Rob Landley
it's already buffering the partial data we feed it, so rolling back most of the last commit to wc.
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-28The previous wc -m didn't handle multibyte characters that crossed a buffer ↵Rob Landley
boundary, so take a guess at making that work. (I haven't got a test case for this. I also don't know how to handle invalid sequences so just don't count them.)
2012-11-27login: Avoid gcc to drop exit condition because of "always false condition".Jonathan Clairembault
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.
2012-11-26Squash "type punned pointer" nonsense with a bigger hammer. (Sheesh.)Rob Landley
2012-11-26Cleanup i18n support (#ifdefectomy, move global init to process launch). ↵Rob Landley
Teach make.sh to emit "#define FLAG_x 0" for options inside disabled USE macros so we can unconditionally refer to them.
2012-11-25Update touch: add remaining posix arguments, make existing ones work.Rob Landley
2012-11-21Make internalization support optionalFelix Janda
2012-11-22Remove readlink -m for being poorly defined ("readlink -m ↵Rob Landley
/dev/null/and/more" answers what question, exactly?), rewrite xabspath() to work right and not depend on realpath, fix subtle longstanding bug in llist_traverse().
2012-11-20Update readlink so -f works. Add -menq while there.Rob Landley
2012-11-20Commit 698 adding cut should ahve included the actual cut.c file. (Oops.)Rob Landley
2012-11-19Teach option parsing about [groups] of related options.Rob Landley
2012-11-16More touch cleanup to use generic infrastructure: use getdate() from libc, ↵Rob Landley
use flag macros, option parsing can collect argument strings in global block, use existing perror_* macros.
2012-11-16Fix touch warnings (unused variables, failure to reserve space for null ↵Rob Landley
terminator).
2012-11-16Refactor touch (cleanup whitespace, brackets, function order), code ↵Rob Landley
otherwise same.
2012-11-16Add touch from Choubey Ji.Rob Landley
2012-11-16Add rebound support to intercept error_exit() and longjmp instead.Rob Landley
2012-11-15Make ls default to -C if no option specified and it's outputting to a tty.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-11-12Yet another attempt to get the fiddly patch file creation logic right.Rob Landley
2012-11-10On 32 bit platforms %ld doesn't match uint64_t, so do long long and %lld ↵Rob Landley
(rather than deal with verbose PRIu64 nonsense).
2012-11-10Fix reversed test: patch creates a file if /dev/null or dated the epoch ↵Rob Landley
_and_ first hunk being replaced is 0 lines at start of file, not one or the other.
2012-11-08Change df percentage calculation to match posix, spotted by Roy Tam.Rob Landley
2012-11-08wc -m only cares about counting characters. Attached is a try on ↵Felix Janda
implementing it and some test cases for it. The test cases are only for UTF-8 locales.
2012-11-03Make sha1sum and md5sum default to y.Rob Landley
2012-11-01Add vconfig.c - Creates virtual ethernet devices.Kyungwan Han
2012-10-26Follow symlinks to get actual device name, getmountlist() reverses order for ↵Rob Landley
us now, detect stdout to full device.
2012-10-23Add md5sum in lsb, combine sha1sum (mostly shared infrastructure). Downside: ↵Rob Landley
current infrastructure can't give them different help text. Hmmm...
2012-10-08Simplify sha1sum a little.Rob Landley
2012-10-08Fix thinko for uname -m when i686 binary runs on x86_64 host.Rob Landley
2012-10-08New 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-10-07Missing line in patch -l. Oops.Rob Landley
2012-10-06patch -l (loose match)Rob Landley
2012-10-06Trivial cleanupRob Landley
2012-10-06Fix catv to display byte 255 correctly. (It's both M- and ^?.)Rob Landley
2012-10-05Cleanup mknod.Rob Landley
2012-09-17Clean up sha1sum, make it use global union properly.Rob Landley
2012-09-09gethostname: Tighten up error messages slightly, switch to default "y".Rob Landley
2012-09-08Add switch_root and fix infrastructure to understand name "switch_root".Rob Landley
2012-09-06I screwed up ls in commit 580. Oops. Fix it.Rob Landley
2012-09-06Posix compliance: wc shouldn't have trailing spaces (breaks aboriginal's mkinitrRob Landley
amfs script), when to print filenames was wrong, and it should have a "total" line when counting multiple arguments.
2012-09-03mktemp broke kernel build, so new rules: if you don't specify anything, ↵Rob Landley
/tmp/tmp.* Specify a file, ./file. Specify -p dir then dir/tmp.*. Specify -p dir and file, dir/file. Also implement -q which lsb wants.
2012-08-27Roy Tam pointed out that sh.c didn't get fully converted.Rob Landley
2012-08-26Add du command.Ashwini Kumar
2012-08-25Regularize command headers, update links to standards documents.Rob Landley