echo.1 (1052B)
- .\" Collection of Unix tools, comparable to coreutils
- .\" Copyright 2017-2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2023-05-31
- .Dt ECHO 1
- .Os
- .Sh NAME
- .Nm echo
- .Nd write arguments to standard output
- .Sh SYNOPSIS
- .Nm
- .Op Ar string ...
- .Sh DESCRIPTION
- .Nm
- buffers all of it's arguments and writes them all at once to standard output, followed by a newline.
- If there is no arguments, only the newline is written.
- .Pp
- The
- .Fl -
- operand, which generally denotes an end to option processing, is treated as part of
- .Ar string .
- .Pp
- .Nm
- supports the following options:
- .Bl -tag -width Ds
- .It Fl n
- Do not print the trailing newline character.
- .El
- .Pp
- Should also be noted that this version of
- .Nm
- isn't XSI-compliant as
- .Fl n
- is parsed as an option and backslash operators aren't supported.
- See
- .Xr printf 1
- for such an utility.
- .Sh EXIT STATUS
- .Ex -std
- .Sh STANDARDS
- Not XSI-compliant but should be compliant to
- .St -p1003.1-2008
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact@hacktivis.me