Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-03-17 | Fix bug where all tests aren't being run with 'make test'. | Andy Chu | |
The tests/*.test files shouldn't explicitly exit, because they are sourced in scripts/test.sh. No tests after sed were being run. | |||
2016-03-16 | expr cleanup: traverse optargs with tok instead of incrementing optargs and | Rob Landley | |
copying itinto a second variable. Also add error message for empty ( ) | |||
2016-03-16 | Move whitespace and curly brackets around, move reference URLs to top of file, | Rob Landley | |
eliminate syntax_error() function (just call error_exit() directly), eliminate advance() wrapper, pipe expected error messages in test to /dev/null | |||
2016-03-16 | Fix type coercion bugs in expr. | Andy Chu | |
All tests pass now; this fixes the 2 remaining failures, including a segfault. The structure of the code has changed a lot -- instead of having a tiny function per operator, we have eval_op() which does common type coercion and then evaluates the operator. I tried writing it a couple different ways, and this was the cleanest. The OPS table now contains the operator string, precedence level, signature for type coercion, and operator ID. | |||
2016-03-16 | Fix the operator precedence in expr. | Andy Chu | |
expr now uses the precedence table specified by POSIX, implemented using the "precedence climbing" algorithm. See the references at the top of eval_expr(). This fixes 3 of 4 failing tests. I also added more tests for correct behavior and for syntax errors. This includes a new test exposing a segfault, related to type coercion. | |||
2016-03-15 | Add base64.test, and Izabera pointed out that -w0 should disable wrapping. | Rob Landley | |
2016-03-15 | Add ls -b and make ls -q work with utf8. | Rob Landley | |
2016-03-13 | Split out _xexit() from xexit() and give sigatexit() multiple callbacks. | Rob Landley | |
2016-03-13 | factor: use long long math (64 bit on 32 bit platforms) and handle negative | Rob Landley | |
numbers even though we use unsigned math now. | |||
2016-03-12 | Update scripts/single.sh and cp.c so "make mv" isn't actually building cp. | Rob Landley | |
2016-03-12 | The xattr functions were added during the 2.5 kernel, lsm.h can #include the | Rob Landley | |
header unconditionally. (This fixes the warning when CP_PRESERVE disabled.) | |||
2016-03-10 | Fix segfault in sed -e 'c\'. | Andy Chu | |
Found by afl-fuzz. | |||
2016-03-08 | Add depends on TOYBOX_FORK for various commands that need nommu conversion. | Rob Landley | |
(This should fix allyesconfig.) | |||
2016-03-07 | Cleanup pass on the dirtree infrastructure, in preparation for making rm -r | Rob Landley | |
handle infinite depth. Fix docs, tweak dirtree_handle_callback() semantics, remove dirtree_start() and don't export dirtree_handle_callback(), instead offer dirtree_flagread(). (dirtree_read() is a wrapper around dirtree_flagread passing 0 for flags.) | |||
2016-03-06 | Fix warning (toys.optflags is a long long now). | Rob Landley | |
2016-03-06 | wget: clean up | Lipi Lee | |
- shorten error messages - replace mk_rq with sprintf - remove struct and defines - change unsigned int to unsigned | |||
2016-03-06 | Another pass at file.c: move posix-required "executable" to front of output, | Rob Landley | |
next few fields in the order the other implementation outputs, fewer commas, fix a big where big endian executable type wasn't detected right, and fix the filehandle leak. | |||
2016-03-04 | Elliott pointed out that we output "unlimited" instead of "infinity", so | Rob Landley | |
accept that as input. (And that I screwed up the test.) | |||
2016-03-03 | Fix bzcat integer overflow reported by John Regehr. | Rob Landley | |
2016-03-02 | Fix file for Java class files, improve script detection, and add tests. | Elliott Hughes | |
2016-03-02 | More minor cleanup (inline a function, simplify name of another). | Rob Landley | |
2016-03-02 | Minor cleanup. | Rob Landley | |
2016-03-02 | Fix base64 so == wraps properly. | Rob Landley | |
2016-03-02 | Factor out command name at the start of test name, have runtest.sh print it. | Rob Landley | |
2016-03-02 | Print command name at start of each test. | Rob Landley | |
2016-03-02 | Split lsattr/chattr tests. | Rob Landley | |
2016-03-02 | Command name at start of each test. | Rob Landley | |
2016-03-02 | Add fstype test. | Rob Landley | |
2016-03-02 | Try to consistently print command name at the start of each test. | Rob Landley | |
2016-03-02 | split pgrep/pkill tests. | Rob Landley | |
2016-03-02 | For years the man pages have said to #include <sys/types.h> to get | Rob Landley | |
major/minor/makedev, but glibc has vowed to break existing programs (https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html) and replace it with _another_ non-standard header (not in posix or lsb), so let's just add functions to lib/ that do the transform ourselves. | |||
2016-03-01 | The last-ever release of uClibc hasn't got prlimit, so probe. | Rob Landley | |
2016-03-01 | SYS_finit_module isn't there on Ubuntu 12.04 because it was only added to the | Rob Landley | |
3.8 kernel in 2012. That's way too new to assume the build environment has it, so #ifdef and simulate a failure if it's not there. | |||
2016-03-01 | Use shell builtins instead of calling wc/awk/sed. (Fewer forks in build loop.) | Rob Landley | |
Based on suggestions from Nicholas Boichat. | |||
2016-03-01 | The last-ever release of uClibc didn't #define MS_RELATIME. | Rob Landley | |
2016-03-01 | Use the correct types for recvfrom. | George Burgess IV | |
The clang FORITFY implementation doesn't like pointer signedness mismatch. "What mismatch?", you say. "The historical bug in LP32 Android that left it with a signed socklen_t". | |||
2016-03-01 | Fix "make help" again. | Elliott Hughes | |
Same missing quote at end of line as last time. The new additions to the help are very useful though. | |||
2016-03-01 | config2help: add missing ctype.h include | Mike Frysinger | |
This file uses isspace which is defined in the ctype.h header. | |||
2016-02-29 | do_regular_file() prints output line, don't fall through to print default. | Rob Landley | |
2016-02-29 | Fix trailing spaces on ps -o cmdline. | Elliott Hughes | |
2016-02-29 | Fix inverted test. | Rob Landley | |
2016-02-29 | pending/file: add cpio, tar, zip formats. | Isaac Dunham | |
2016-02-29 | Fix a typo from last time, and Isaac Dunham's todo list: | Rob Landley | |
- per POSIX, 'cannot open' must be in the 'type' string if open() fails (both EPERM and ENOENT); we only do that if open() succeeds and fstat(fd) fails. - symlink detection (as per POSIX) won't work: opening them O_RDONLY results in following the link, then we fstat() the fd. - file 'FIFO' causes a hang; open() won't return till there's a writer. | |||
2016-02-29 | Second pass at the ELF type table. | Rob Landley | |
2016-02-26 | Switch to $! for make.sh process enumeration. | Rob Landley | |
2016-02-25 | Fix more warnings on 32 bit builds. | Rob Landley | |
2016-02-25 | Fix bug where mount -o leftover string didn't get passed through to kernel | Rob Landley | |
for 2-argument version. | |||
2016-02-25 | Typecast a printf argument because wchar_t isn't a rigidly defined size. | Rob Landley | |
2016-02-25 | Musl needs an extra #include. | Rob Landley | |
2016-02-22 | implement simple 'wget' and port name can be specified in URL if default | Lipi C. H. Lee | |
port 80 is not used. |