summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix two minor parsing bugs in -S processing:gad2005-07-131-14/+23
| | | | | | | | | | | 1) An unquoted space is always a separator, even when not "in_arg". 2) When a new destination buffer must be allocated during variable substitution, only copy data from the active buffer to the new one when we *are* "in_arg". These were noticed when testing variable-substitution of variables which have null values, and are not inside quoted strings... MFC plans: after a few days, and re@ approval...
* add myself as a new committerjkim2005-07-071-0/+1
| | | | | Reviewed by: anholt (mentor) Approved by: re (scottl)
* Our bsd.*.mk only supports 6 WARNS levels and we should not use higher valuesjohan2005-06-301-1/+1
| | | | | | until it does. Approved by: re (dwhite)
* Fixed troff warnings.ru2005-06-271-1/+1
| | | | Approved by: re (blanket manpages)
* Tidy up the markup.ru2005-06-221-34/+49
| | | | | Approved by: re (blanket) OK'ed by: gad
* Fix a bug where the value of ${SOMEVAR} would simply disappear if theregad2005-06-211-23/+48
| | | | | | | | was a separator character immediately before it. This wasn't likely to happen in #-lines, but we might as well get it right. Also fix it so that "" and "" will create a zero-length argument. Approved by: re (blanket `env')
* Put in a more descriptive heading for the `env' command.gad2005-06-211-1/+1
| | | | | Noticed by: Matthew D Fuller Approved by: re (blanket `env')
* Undo r1.14 to env.c. While it is unusual for environment variables togad2005-06-212-7/+2
| | | | | | | | start with a '/', they are more supported (by POSIX and SUSv3) than filenames which have an '=' in them. Noticed by: tjr Approved by: re (blanket `env')
* Add the '-S' and '-P' options. The '-S' option can be used to splitgad2005-06-205-32/+829
| | | | | | | | | | | | | | 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')
* If the `utility' specified starts with a '/' character, then execute itgad2005-06-201-1/+2
| | | | | | | without checking it for an equals-sign. If it starts with a slash, then it cannot be a request to set the value of a valid environment variable. Approved by: re (blanket `env')
* Move the code that clears the environment when `-i' is specified, so it thatgad2005-06-201-5/+9
| | | | | | | it does not happen until all single-letter options are processed. This will be important for the -S option, which will be coming soon. Approved by: re (blanket `env')
* Add a '-v' option to `env', to make it easier to discover exactly what stepsgad2005-06-201-4/+25
| | | | | | | it is doing, and what order it does them. This will be much more useful as more options are added. Approved by: re (blanket `env')
* Decode chroot(2) args.alfred2005-06-141-0/+2
| | | | Approved by: re
* Markup and wording fixes.ru2005-06-149-18/+25
| | | | Approved by: re (blanket)
* Don't free(sock) before it's even allocated.des2005-06-101-1/+0
| | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> MFC after: 1 week
* Remove kludges intended to support src trees with partial obj trees.des2005-06-102-24/+8
| | | | Discussed with: ru
* Append a newline character to the usage string.csjp2005-06-051-1/+1
| | | | MFC after: 3 days
* Use the ki_udata field that was recently-added to kinfo_proc, instead ofgad2005-06-041-1/+1
| | | | stealing ki_spare[0] to hold a pointer.
* Back out revision 1.19 and 1.20 until I find mental clarity to deal witheivind2005-06-011-1/+7
| | | | issues bde pointed out.
* Add myself as a new committer.brd2005-06-011-0/+1
| | | | Approved by: ceri (mentor)
* o Teach login(1) to respect "hushlogin" and "nocheckmail" attributesmaxim2005-06-011-2/+7
| | | | | | | | defined in user's $HOME/.login_conf. PR: bin/75001 Submitted by: Rostislav Krasny MFC after: 2 weeks
* Don't use a patch w/in /usr/src. Programmatically change files when needed.obrien2005-05-312-25/+3
|
* Move #ident into #if 0.stefanf2005-05-319-18/+9
|
* Reduce compiler warning: variable might be used uninitialized, by givingcharnier2005-05-291-3/+5
| | | | an initial value.
* Move variable initialization to reduce compiler warning.charnier2005-05-291-2/+2
|
* Reduce compiler warning: variable might be used uninitialized, by givingcharnier2005-05-292-0/+2
| | | | an initial value.
* Move FreeBSD Id outside of copyright. Initialize variable.charnier2005-05-291-2/+4
|
* Modify vmstat(8)'s domem() routine, which is responsible for extractingrwatson2005-05-291-7/+38
| | | | | | | malloc(9) statistics from kernel memory or a kernel coredump, to catch up with recent changes to adopt per-CPU malloc(9) statistics. The new routines walk the per-CPU statistics pools and coalesce them for presentation to the user.
* dd a '-n' option to ministat, which causes it to display only summaryrwatson2005-05-271-9/+17
| | | | | statistics, not graph and statistical test output. Useful for automated processing.
* Remove an errno reset that became unnecessary.eivind2005-05-261-1/+0
| | | | Noticed by: juli
* decode utimes, lutimes, futimes, chflags, lchflags.alfred2005-05-261-0/+10
|
* Document a couple of gotchas.eivind2005-05-261-1/+7
|
* We are past 4.4BSD - use our new-found stat flags for pipes and fifos.eivind2005-05-261-6/+1
|
* decode mkdir args.alfred2005-05-261-0/+2
|
* Interlink systat(1), iostat(8) and vmstat(8) through their SEE ALSOkeramida2005-05-262-0/+2
| | | | sections, so that users of one can learn about the others easily.
* Add myself to the calendar.thompsa2005-05-261-0/+1
| | | | Approved by: bms (mentor)
* Under certain conditions the condition parser would go one past end ofharti2005-05-251-1/+1
| | | | | | the string. Until now this caused no harm, because the buffer code used to tack two NULs onto buffers. With the new, soon to come, parsing code this isn't the case anymore in all cases, so fix this.
* Document why there is a dependency of certain object files from theharti2005-05-251-0/+6
| | | | | | Makefile. Requested by: ru
* If sysctlbyname fails for kernel related reasons, tag the errnocsjp2005-05-241-1/+1
| | | | | | | string to the end of the error message. I think we used errx() there when we really wanted an err(). MFC after: 1 week
* The caller of Var_Value() should not change the variable value. Makeharti2005-05-245-14/+15
| | | | | | this clear by constifying the return value. Obtained from: DragonFlyBSD
* Get rid of the third argument to Var_Value() the pointer it pointedharti2005-05-248-65/+26
| | | | | | to has always been set to NULL for some time now. Obtained from: DragonFlyBSD
* Make shell.o dependend on the Makefile just in case someone changesharti2005-05-241-1/+1
| | | | the default shell in the Makefile.
* Bump the warning level to 6.harti2005-05-241-1/+1
|
* Fix a 64-bit warning by casting an int64_t to intmax_t and printing itharti2005-05-241-1/+2
| | | | with %jd.
* Factor out ProcExec() into its own file and rename it to Proc_Exec() forharti2005-05-244-123/+193
| | | | | | consistency with the rest of make. Obtained from: DragonFlyBSD (except for the rename)
* Factor out all the .SHELL parsing related stuff into its own file andharti2005-05-247-477/+588
| | | | | | | rename the function to be consistent with the naming scheme in the rest of make. No functional changes. Obtained from: DragonFlyBSD (idea and most of shell.h)
* Use the name of the default shell instead of a numeric index to selectharti2005-05-243-8/+4
| | | | | | the default shell. Idea from: DragonFlyBSD
* Another shell attribute 'unsetenv' that will cause to unsetenv("ENV")harti2005-05-242-8/+18
| | | | | | before executing the shell. Until now this was done when the default shell was the ksh. This failed if the default shell was sh or csh and the user switched to ksh.
* Describe the meta and builtins attributes for the .SHELL specialharti2005-05-241-0/+14
| | | | target.
* Describe the -x option and the .WARN pseudo-target.harti2005-05-241-0/+33
|
OpenPOWER on IntegriCloud