Some more cleanups. Of special importance, never free a pipethat still has running jobs. Instead, we ignore it and expect
it to be cleaned by the background job stuff.
-Erik
Fix the build process so it does not do the evil #ifdef BB_FOO stuff.Build exactly one .o file per function, and let the linker throw away
the junk it doesn't want.
-Erik
This commit guts lash, restoring it to what it was originally intended to do,just be a simple command line interpreter with basic pipe, redirect, and job
control. For all the more fancy things, people should use hush or ash.
-Erik
Per a suggestion from Tom Oehser, fix up the leading-hyphen hack tomake it general. Now all leading single hyphens are ignored for
purposed of applet name matching, while argv[0] is still passed
unaltered to applets, so leading-hyphen sensitive applets (such as sh)
can react accordingly.
-Erik
it turs out, there was a nasty tar bug where bb tar would create leading dirswith mode 0777 in all cases due to usask issues. Thanks to Matt Kraai for
noticing and spotting the culprit. This makes bb tar behave just like GNU
tar once again.
-Erik
Reorganise unarchiving functions, more code re-use, only does single pass(no more linked lists), basis for supporting a cpio (and cheaper untar) applet, but cpio applet isnt included in this.It effects ar, dpkg-deb applets only
I reworked make_human_readable_str so it now has a sane interface,and then fixed up df, du, and ls to use the new interface. I also
fixed up some formatting issues in ls while I was in there.
-Erik
- Fixed bug where you couldn't mix line number and regexes in two-address cmds - Fixed bug where you couldn't use two addresses for a 'c' cmd
- Moved the do_sed_cmd function into process_file to simplify some things
- Reduced a buncha lines of code in the process
Another hush update from Larry: Fixes the interaction between if/then/else/fi syntax and variables.
I planned to do it right from the beginning, but my implementation
was buggy. Also adds the relevant test cases. Also adds some old
Matt Kraai variable test cases that got left out somehow.
Revert the patch from Konstantin Boldyshev <konst@linuxassembly.org> to neverchange permissions on existing directories. This behavior is contrary to SUSv2
and contrary to GNU tar. Thanks to Matt Kraai for pointing this out. I should
have been much more careful about accepting such a patch.
-Erik