xref: /original-bsd/bin/echo/echo.1 (revision 0e8defd9)
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)echo.1	6.5 (Berkeley) 03/13/91
7.\"
8.Vx
9.Dd
10.Dt ECHO 1
11.Os
12.Sh NAME
13.Nm echo
14.Nd write arguments to the standard output
15.Sh SYNOPSIS
16.Nm echo
17.Op Fl n
18.Op string\& ...
19.Sh DESCRIPTION
20The
21.Nm
22utility writes its arguments to standard output,
23followed by a <newline> character.
24If there are no arguments,
25only the <newline> character is written.
26.Pp
27The following option is available:
28.Tw Ds
29.Tp Fl n
30The output is not terminated with a newline.
31.Tp
32.Pp
33The argument
34.Ar string
35defines a string to be written to standard output.
36.Pp
37.Nm Echo
38utility exits 0 on success, and >0 if an error occurs.
39.Sh STANDARDS
40The
41.Nm echo
42function is expected to be POSIX 1003.2 compatible.
43