aboutsummaryrefslogtreecommitdiff
path: root/bin/echo
Commit message (Collapse)AuthorAgeFilesLines
* Add the new standard EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-161-1/+1
| | | | | | | Sort standard sections in the (documented) preferred order. Notes: svn path=/head/; revision=140353
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-102-1/+2
| | | | Notes: svn path=/head/; revision=139969
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+2
| | | | Notes: svn path=/head/; revision=131484
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-062-8/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* - Check and report write(2) errors.Diomidis Spinellis2003-10-111-10/+59
| | | | | | | | | | | | | | | | | - Issue a single writev(2) call instead of multiple write(2)s. This change improves the inefficiencies introduced when echo went on an stdio diet. The following figures are for echoing 1000 arguments. original stdio-based echo: 0.01 real 0.01 user 0.00 sys before: 0.05 real 0.00 user 0.04 sys after: 0.01 real 0.00 user 0.00 sys Notes: svn path=/head/; revision=121010
* Note that -n and \c are implementation-defined as per TC1 to POSIX 2001.Jens Schweikhardt2003-05-081-2/+11
| | | | | | | | Approved by: re@ (bmah) MFC after: 3 days Notes: svn path=/head/; revision=114845
* Quiet warnings about copyright[].David E. O'Brien2003-05-011-2/+2
| | | | Notes: svn path=/head/; revision=114433
* Refer to 1003.1-2001 in the Standards section now that TC1 allows theTim J. Robbins2003-04-121-4/+4
| | | | | | | traditional BSD behaviour (-n option) and FreeBSD extensions (\c). Notes: svn path=/head/; revision=113381
* Put echo on a diet, removing unnecessary use of stdio and getopt.Nate Lawson2002-11-131-9/+8
| | | | | | | | | | | | Before... -r-xr-xr-x 1 root wheel 58636 Oct 28 05:16 /bin/echo After... -rwxr-xr-x 1 root wheel 12824 Nov 12 17:39 /usr/obj/usr/src/bin/echo/echo Submitted by: Tim Kientzle <kientzle@acm.org> Notes: svn path=/head/; revision=106835
* Consistently use __FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99109
* clarify code:Alfred Perlstein2002-03-041-6/+19
| | | | | | | | | | add comments. don't get the length of each arg passed, only the last one. check against == or != NULL rather than using a pointer value as truth test. Notes: svn path=/head/; revision=91614
* Fix warnings inspired by lint, a commercial lint and WARNS=4.Mark Murray2002-02-221-2/+3
| | | | Notes: svn path=/head/; revision=91082
* o __P has been reovedWarner Losh2002-02-021-5/+1
| | | | | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o gc some #ifdef sun ... #endif code Approved by: arch@, new style(9) Notes: svn path=/head/; revision=90109
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyDavid E. O'Brien2001-12-041-2/+0
| | | | | | | | | set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87323
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* WARNS= -> WARNS?=Dima Dorfman2001-06-221-1/+1
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=78624
* Make this pass WARNS=2 and BDECFLAGSKris Kennaway2001-05-202-1/+5
| | | | Notes: svn path=/head/; revision=76874
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-4/+9
| | | | Notes: svn path=/head/; revision=71895
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68935
* Correct some hard sentence breaks. Only those surrounding the previousSheldon Hearn1999-09-141-2/+2
| | | | | | | | | | | commit and those which cause ugly nroff output have been fixed, since the purpose of the style guideline which they contravene is to reduce the sizes of deltas. Reported by: bde Notes: svn path=/head/; revision=51275
* Improve shell documentation:Sheldon Hearn1999-09-081-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Consistently misspell built-in as builtin. * Add a builtin(1) manpage and create builtin(1) MLINKS for all shell builtin commands for which no standalone utility exists. These MLINKS replace those that were created for csh(1). * Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages, as well as to the manpages of standalone utilities which are supported as shell builtin commands in at least one of the shells. In such manpages, explain that similar functionality may be provided as a shell builtin command. * Improve sh(1)'s description of the cd builtin command. Csh(1) already describes it adequately. Replace the cd(1) manpage with a builtin(1) MLINKS link. * Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use Ic instead of Xr for shell builtin commands. * Undo English contractions. Reviewed by: mpp, rgrimes Notes: svn path=/head/; revision=51090
* $Id$ -> $FreeBSD$Peter Wemm1999-08-273-3/+3
| | | | Notes: svn path=/head/; revision=50471
* Various spelling/formatting changes.Kris Kennaway1999-05-081-2/+2
| | | | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> Notes: svn path=/head/; revision=46684
* Correct use of .Nm. Add rcsid.Philippe Charnier1998-05-132-7/+9
| | | | Notes: svn path=/head/; revision=36009
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-223-3/+3
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-143-3/+3
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* -Wall cleaning.Steve Price1996-12-141-3/+3
| | | | Notes: svn path=/head/; revision=20420
* Well, it would appear that the "ayes" have it (though by a slim margin).Jordan K. Hubbard1995-08-312-5/+13
| | | | | | | | | Apply my \c changes to echo. It should also be noted that this is: A) going into 2.2, not 2.1 B) a functional no-op unless you actually use it! Notes: svn path=/head/; revision=10498
* Added $Id$David Greenman1994-09-243-0/+4
| | | | Notes: svn path=/head/; revision=3044
* BSD 4.4 Lite bin SourcesRodney W. Grimes1994-05-263-0/+146
Notes: svn path=/head/; revision=1556