Rob Landley
|
284a27675c
Fix env properly: env -i uses old $PATH, but use new PATH= when redefined.
|
2 lat temu |
Rob Landley
|
52bbc1e0a4
Allow 0 prefix to optstr to include argv[0] in optargs[0].
|
3 lat temu |
Ethan Sommer
|
a17730d630
remove unneeded ; after GLOBALS
|
4 lat temu |
Elliott Hughes
|
763e85820b
Canonicalize the usage: lines for the POSIX toys.
|
4 lat temu |
Rob Landley
|
6a63b625bf
Add comment and test.
|
5 lat temu |
Denys Nykula
|
5822475e0d
Have env exec, not recurse to builtin.
|
5 lat temu |
Rob Landley
|
543b2580c7
Add xunsetenv() for the error checking.
|
5 lat temu |
Rob Landley
|
71c3f623c6
New xsetenv() plumbing (repeatedly set same environment variables without
|
5 lat temu |
Elliott Hughes
|
95574e3f2a
cmp/env/nice/nohup/sort: use TOYFLAG_ARGFAIL.
|
5 lat temu |
Rob Landley
|
da230831ca
Typo (env -0 was checking the flag wrong).
|
7 lat temu |
Rob Landley
|
8ab2d8a3fc
Add -0 to env.
|
7 lat temu |
Rob Landley
|
e6ac7c1cf4
Teach env that - as first argument means -i for some reason. (Posix!)
|
7 lat temu |
izabera
|
1e77f70a1d
implement env -u
|
8 lat temu |
Rob Landley
|
c82be78035
Kylie McClain pointed out that env should clear variables with NAME= by itself.
|
9 lat temu |
Rob Landley
|
d57c23b2f3
Cleanup pass on env, removing exec_optargs().
|
9 lat temu |
Jacek Bukarewicz
|
ba84528d41
env - there were 2 segfaults when run on my Ubuntu 12.04 machine:
|
10 lat temu |
Rob Landley
|
7aa651a6a4
Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
|
11 lat temu |
Rob Landley
|
c0e56edaf2
New build infrastructure to generate FLAG_ macros and TT alias, #define FOR_commandname before #including toys.h to trigger it. Rename DEFINE_GLOBALS() to just GLOBALS() (because I could never remember if it was DECLARE_GLOBALS). Convert existing commands to use new infrastructure, and replace optflag constants with FLAG_ macros where appropriate.
|
11 lat temu |
Rob Landley
|
f91b7c89bc
Regularize command headers, update links to standards documents.
|
12 lat temu |
Rob Landley
|
3a9241add9
Move commands into "posix", "lsb", and "other" menus/directories.
|
12 lat temu |