tar now works with or without the leading "-" on the options.
-Erik
* Fixed a bug where "sed 's/foo/bar/g'" (i.e. a script w/o a "-e")
* ps now supports BB_FEATURE_AUTOWIDTH, and can adjust its width
to match the terminal (defaults to width=79 when this is off).
+ * ps now accepts (and ignores) all options except for "--help" (which
+ as would be expected displays help).
* Fixed mount'ing loop devices when the filesystem type was not
specified. It used to revert to non-loop after the first try.
* all mallocs now use xmalloc (and so are OOM error safe), and
# Set the following to `true' to make a debuggable build.
# Leave this set to `false' for production use.
# eg: `make DODEBUG=true tests'
-DODEBUG = false
+DODEBUG = true
# If you want a static binary, turn this on.
DOSTATIC = false
$(MAKE) -C docs
regexp.o nfsmount.o: %.o: %.h
-$(OBJECTS): %.o: busybox.def.h internal.h %.c
+$(OBJECTS): %.o: busybox.def.h internal.h %.c Makefile
test tests:
cd tests && $(MAKE) all
#endif
"\tx\t\textract\n"
"\tt\t\tlist\n"
- "File selection:\n"
+ "\nFile selection:\n"
"\tf\t\tname of tarfile or \"-\" for stdin\n"
"\tO\t\textract to stdout\n"
#if defined BB_FEATURE_TAR_EXCLUDE
"\t--exclude\tfile to exclude\n"
#endif
- "Informative output:\n"
+ "\nInformative output:\n"
"\tv\t\tverbosely list files processed\n"
;
usage(tar_usage);
/* Parse any options */
- while (--argc > 0 && **(++argv) == '-') {
+ while (--argc > 0 && (**(++argv) != '\0')) {
stopIt=FALSE;
while (stopIt==FALSE && *(++(*argv))) {
switch (**argv) {
break;
}
#endif
- usage(tar_usage);
break;
default:
- if (argc > 1 && **(argv + 1) == '-')
+ if (argc > 1 && strcmp(argv[1], "--help") == 0) {
usage ("ps\n\nReport process status\n\nThis version of ps accepts no options.\n");
+ }
dir = opendir("/proc");
if (!dir)
- if (argc > 1 && **(argv + 1) == '-')
+ if (argc > 1 && strcmp(argv[1], "--help") == 0) {
usage ("ps\n\nReport process status\n\nThis version of ps accepts no options.\n");
+ }
dir = opendir("/proc");
if (!dir)
#endif
"\tx\t\textract\n"
"\tt\t\tlist\n"
- "File selection:\n"
+ "\nFile selection:\n"
"\tf\t\tname of tarfile or \"-\" for stdin\n"
"\tO\t\textract to stdout\n"
#if defined BB_FEATURE_TAR_EXCLUDE
"\t--exclude\tfile to exclude\n"
#endif
- "Informative output:\n"
+ "\nInformative output:\n"
"\tv\t\tverbosely list files processed\n"
;
usage(tar_usage);
/* Parse any options */
- while (--argc > 0 && **(++argv) == '-') {
+ while (--argc > 0 && (**(++argv) != '\0')) {
stopIt=FALSE;
while (stopIt==FALSE && *(++(*argv))) {
switch (**argv) {
break;
}
#endif
- usage(tar_usage);
break;
default: