Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-01-03 | Finish cd, make help -ahu unconditional, fix expand memory cleanup path, | Rob Landley | |
set $HOME $PWD and $OLDPWD, fix prompt \w, shuffle some functions around to avoid prototypes, implement tilde expansion, add FORCE_COPY. | |||
2020-01-03 | No, optflags gets cleared by toy_init(), use toys.rebound instead. | Rob Landley | |
2020-01-03 | Add MAYFORK to "help", teach it to behave differently when called as a | Rob Landley | |
builtin, and add -u. | |||
2020-01-01 | Use FLAG() macros. | Rob Landley | |
2020-01-01 | Add MAYFORK to more pseudo-builtins. | Rob Landley | |
This doesn't (yet) add shell builtin awareness to time, kill, or pwd, just lets them run in the shell process. | |||
2020-01-01 | Factor out array_add(), replace argxtend(). | Rob Landley | |
2020-01-01 | If allocation update is done in blocks, initial allocation has to populate | Rob Landley | |
a full block. | |||
2019-12-31 | toysh: start of <(echo hello) support. | Rob Landley | |
2019-12-29 | Implement single command env assignments (abc=def command) and make debug | Rob Landley | |
output #definable. | |||
2019-12-29 | Debug basic pipe support and I/O flush for builtins. | Rob Landley | |
2019-12-28 | Add VERBOSE=xpect | Rob Landley | |
2019-12-28 | Fiddle with docs a bit. | Rob Landley | |
2019-12-28 | More sheer pedantry. | Rob Landley | |
2019-12-28 | Rename get_chunk()/dump_chunk() to read_chunk()/write_chunk(). | Rob Landley | |
2019-12-28 | Cleanup, mostly whitespace. | Rob Landley | |
2019-12-28 | Sheer pedantry. | Rob Landley | |
2019-12-28 | Cleanup: use FLAG() macros and new argument variable names. | Rob Landley | |
2019-12-28 | Allow dlist_terminate() to be called repeatedly on same list. | Rob Landley | |
2019-12-28 | Next round of sh plumbing: more work on redirect and pipe, use CLOEXEC. | Rob Landley | |
2019-12-28 | Change variable type to avoid typecast. | Rob Landley | |
2019-12-28 | tar: fix memory write error | Emmanuel Nicolet | |
Clear the last byte of the allocated buffer. | |||
2019-12-26 | Fix setsid with vfork, redo command line arguments. | Rob Landley | |
Switch -t to -c (like man page says), add -w (wait) and -d (detach from tty) | |||
2019-12-23 | Toysh passes two tests now! Woo! (Otherwise, does not remotely work right now.) | Rob Landley | |
2019-12-23 | Add "texpect" and add a couple simple examples to sh.test. | Rob Landley | |
2019-12-22 | gzip: reject non-gzip files in zlib path. | Elliott Hughes | |
It turns out that zlib defaults to just copying data verbatim if the input isn't in gzip format, rather than rejecting it. Explicitly add a check that zlib isn't doing that. (The toybox inflation path already errors out.) Also add the missing test. | |||
2019-12-22 | Streamline init for NOFORK (fewer unnecessary syscalls for shell builtins). | Rob Landley | |
2019-12-22 | Bugfix: tee with no arguments was writing to stdout twice. | Rob Landley | |
Add basic smoketest while we're at it. | |||
2019-12-21 | Add patch -F (fuzz factor) | Rob Landley | |
2019-12-21 | Tighten up unquote_file() | Rob Landley | |
2019-12-21 | Very basic patch smoketest | Rob Landley | |
2019-12-20 | Making sh single build work broke other single builds. Fix them again. | Rob Landley | |
2019-12-20 | patch: support [FILE [PATCH]] arguments. | Elliott Hughes | |
POSIX only mentions -i/stdin, but GNU patch -- and Larry Wall's patch 1.3, found via https://en.wikipedia.org/wiki/Patch_(Unix) -- also support supplying the name of the file to patch and the name of the patch file as optional arguments. The AOSP build makes use of this syntax to patch snakeyaml to remove references to java.beans.* stuff. | |||
2019-12-15 | Nothing in pending should default y. | Rob Landley | |
2019-12-14 | Any substitute EVAL should supply its own -- | Rob Landley | |
2019-12-14 | Teach "make sh" to make the multiplexer and builtins, even though it's "single". | Rob Landley | |
2019-12-14 | Bugfix: xgetline() wasn't returning NULL at EOF. | Rob Landley | |
2019-12-14 | dirtree.c: avoid spurious EINVAL warnings. | Elliott Hughes | |
An Android engineer complained that they were seeing this when not running as root: $ adb shell ls ls: ./postinstall: Invalid argument ls: ./init: Permission denied ls: ./data_mirror: Invalid argument ls: ./init.environ.rc: Invalid argument ls: ./metadata: Invalid argument acct adb_keys apex From strace, it was here: newfstatat(4, "adb_keys", 0x7fc67eca88, AT_SYMLINK_NOFOLLOW) = -1 EACCES (Permission denied) readlinkat(4, "adb_keys", 0x5e843c7720, 4095) = -1 EINVAL (Invalid argument) So stop looking at st.st_mode (and then deciding to do a readlinkat()) if we didn't actually successfully stat(). | |||
2019-12-13 | fix loopback device mount fail | wayling | |
When we "losetup" success need mount loop device. Found this issue on AndroidQ | |||
2019-12-12 | Next round of toysh work, with associated lib plumbing. | Rob Landley | |
2019-12-06 | Squash a warning. | Rob Landley | |
2019-12-06 | du.test: skip on Mac. | Elliott Hughes | |
None of the current tests are relevant on the Mac because small symlinks are inlined into inodes, as are empty directories, so everything's using zero blocks. | |||
2019-12-06 | printf.test: work around bash 3.2 on the Mac. | Elliott Hughes | |
2019-12-06 | stat: fix filesystem type on macOS. | Elliott Hughes | |
(Also show unknown values on Linux in hex rather than just "unknown".) | |||
2019-12-06 | main.c: fall back to user's locale. | Elliott Hughes | |
We still prefer C.UTF-8 for predictability, but macOS doesn't have that. | |||
2019-12-04 | Fix getopt optstring | E5ten | |
Move longopts after their corresponding shortopts instead of before | |||
2019-12-04 | ifconfig.test: deflake. | Elliott Hughes | |
::2 can legitimately be part of an IPv6 address, causing the test to fail because the grep matches an unrelated part of the output. Be more explicit about what we're actually searching for (as the previous test already was) to avoid flakiness. | |||
2019-11-24 | bc: fix a comparison bug | Gavin Howard | |
2019-11-23 | macos_miniconfig: add cp, mktemp, and mv. | Elliott Hughes | |
All three have been in use for the Android build for a while now, and all the tests pass. | |||
2019-11-23 | file.test: fix /dev/zero major/minor for Mac. | Elliott Hughes | |
2019-11-23 | Fix iconv and tests on Mac. | Elliott Hughes | |
The Mac iconv_open(3) doesn't follow Unicode TR#22 rules for charset alias matching that bionic and glibc do (and, strictly, POSIX doesn't say you have to even though it's obviously a good idea), so we have to say exactly "UTF-8" rather than "utf8". Additionally, the 2006-era bash 3.2 on current versions of macOS (because it was the last GPLv2 bash) seems to have bugs that cause it to mangle UTF-8 input, so we can't reliably echo a UTF-8 sequence into a file. Use \x in the tests to work around this. |