aboutsummaryrefslogtreecommitdiff
path: root/coreutils/env.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - add central knob to turn off getopt_long everywhere. EXPERIMENTAL!aldot2006-05-261-1/+4
| | | | | | | | | Adds "Enable getopt long" under "General options", default y. Send patches to fix getopt_ulflags and run_parts.c if you turn this off.. See http://busybox.net/lists/busybox/2006-May/021828.html for a start to run-parts git-svn-id: svn://busybox.net/trunk/busybox@15195 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-1/+1
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Denis Vlasenko to constify things and fix a few typos.landley2006-02-221-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14210 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - new bb_opt_complementally syntax, use [-:?] only - 'free' charsvodz2005-10-141-7/+5
| | | | | | | - new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets - use bb_default_error_retval for env applet git-svn-id: svn://busybox.net/trunk/busybox@11859 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup patch by Bernhard Fischer, removing unnecessary includes oflandley2005-09-111-1/+1
| | | | | | | getopt.h, whitespace changes, typos, etc. git-svn-id: svn://busybox.net/trunk/busybox@11422 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 1) bb_opt_complementaly -> bb_opt_complementallyvodz2005-09-051-1/+1
| | | | | | | 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally git-svn-id: svn://busybox.net/trunk/busybox@11332 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Thats odd. I guess this was cut-n-paste error, but vodzandersen2004-04-161-1/+1
| | | | | | | email address was wrong! git-svn-id: svn://busybox.net/trunk/busybox@8765 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes:andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As vodz pointed out, setting unset_env to NULL is sufficientandersen2003-11-071-5/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7844 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Set unset_env pointing to a NULL item, to prevent us from walkingandersen2003-11-031-1/+5
| | | | | | | | off the end of the list and segfaulting. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7766 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch98 from vodz:andersen2003-07-281-12/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Denis, ># ./busybox env - echo zzz >zzz ># ./busybox echo -n zzz >zzz ># ./busybox env - echo -n zzz >env: invalid option -- n > > obviously, env tried to understand -n as env's option > instead of blindly passing it to echo... > >BusyBox v1.00-pre1 (2003.07.16-07:53+0000) multi-call binary > >Usage: env [-iu] [-] [name=value]... [command] Ah, you found very old problem. Last patch also have: - multiple "-u unsetenv" support - GNU long option support - save errno after exec failed before bb_perror_msg() --w vodz git-svn-id: svn://busybox.net/trunk/busybox@7120 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch89 from vodz:andersen2003-06-201-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz git-svn-id: svn://busybox.net/trunk/busybox@6939 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-18/+34
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.ckraai2001-05-161-1/+1
| | | | | | | by Larry Doolittle. git-svn-id: svn://busybox.net/trunk/busybox@2653 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Check that putenv succeeded, suggested by Jonas Holmberg.kraai2001-05-111-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2605 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix handling of '-' option and way that variables are added to thekraai2001-05-111-6/+14
| | | | | | | | environment from Jonas Holmberg <jonas.holmberg@axis.com>. Fix handling of command options by adding + to getopt string. git-svn-id: svn://busybox.net/trunk/busybox@2603 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in a new standalone env applet for fixing up app's environmentsandersen2001-03-291-0/+97
-Erik git-svn-id: svn://busybox.net/trunk/busybox@2224 69ca8d6d-28ef-0310-b511-8ec308f3f277