cvs commit: src/usr.bin/env Makefile env.1 env.c envopts.c envopts.h
Garance A Drosehn
gad at FreeBSD.org
Mon Jun 20 03:43:26 GMT 2005
gad 2005-06-20 03:43:25 UTC
FreeBSD src repository
Modified files:
usr.bin/env Makefile env.1 env.c
Added files:
usr.bin/env envopts.c envopts.h
Log:
Add the '-S' and '-P' options. The '-S' option can be used to split
apart a string, and supports some text substitutions. This can be
used to provide all the flexibility (and more!) that was lost by recent
changes to how the kernel parses #!-lines in shell scripts.
The '-P' option provides a way to specify an alternate set of directories
to use when searching for the 'utility' program to run. This way you can
be sure what directories are used for that search, without changing the
value of PATH that the user has set. Note that on FreeBSD 6.0, this
option is worthless unless the '-S' option is also used.
Approved by: re (blanket `env')
Revision Changes Path
1.6 +2 -0 src/usr.bin/env/Makefile
1.6 +341 -29 src/usr.bin/env/env.1
1.15 +19 -3 src/usr.bin/env/env.c
1.1 +430 -0 src/usr.bin/env/envopts.c (new)
1.1 +37 -0 src/usr.bin/env/envopts.h (new)
More information about the cvs-src
mailing list