logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

echo.1 (1052B)


  1. .\" Collection of Unix tools, comparable to coreutils
  2. .\" Copyright 2017-2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2023-05-31
  5. .Dt ECHO 1
  6. .Os
  7. .Sh NAME
  8. .Nm echo
  9. .Nd write arguments to standard output
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Ar string ...
  13. .Sh DESCRIPTION
  14. .Nm
  15. buffers all of it's arguments and writes them all at once to standard output, followed by a newline.
  16. If there is no arguments, only the newline is written.
  17. .Pp
  18. The
  19. .Fl -
  20. operand, which generally denotes an end to option processing, is treated as part of
  21. .Ar string .
  22. .Pp
  23. .Nm
  24. supports the following options:
  25. .Bl -tag -width Ds
  26. .It Fl n
  27. Do not print the trailing newline character.
  28. .El
  29. .Pp
  30. Should also be noted that this version of
  31. .Nm
  32. isn't XSI-compliant as
  33. .Fl n
  34. is parsed as an option and backslash operators aren't supported.
  35. See
  36. .Xr printf 1
  37. for such an utility.
  38. .Sh EXIT STATUS
  39. .Ex -std
  40. .Sh STANDARDS
  41. Not XSI-compliant but should be compliant to
  42. .St -p1003.1-2008
  43. .Sh AUTHORS
  44. .An Haelwenn (lanodan) Monnier Aq Mt contact@hacktivis.me