logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

true.1p (2374B)


  1. '\" et
  2. .TH TRUE "1P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. true
  12. \(em return true value
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. true
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR true
  21. utility shall return with exit code zero.
  22. .SH OPTIONS
  23. None.
  24. .SH OPERANDS
  25. None.
  26. .SH STDIN
  27. Not used.
  28. .SH "INPUT FILES"
  29. None.
  30. .SH "ENVIRONMENT VARIABLES"
  31. None.
  32. .SH "ASYNCHRONOUS EVENTS"
  33. Default.
  34. .SH STDOUT
  35. Not used.
  36. .SH STDERR
  37. Not used.
  38. .SH "OUTPUT FILES"
  39. None.
  40. .SH "EXTENDED DESCRIPTION"
  41. None.
  42. .SH "EXIT STATUS"
  43. Zero.
  44. .SH "CONSEQUENCES OF ERRORS"
  45. None.
  46. .LP
  47. .IR "The following sections are informative."
  48. .SH "APPLICATION USAGE"
  49. This utility is typically used in shell scripts, as shown in the
  50. EXAMPLES section. The special built-in utility
  51. .BR :
  52. is sometimes more efficient than
  53. .IR true .
  54. .SH EXAMPLES
  55. This command is executed forever:
  56. .sp
  57. .RS 4
  58. .nf
  59. while true
  60. do
  61. command
  62. done
  63. .fi
  64. .P
  65. .RE
  66. .SH RATIONALE
  67. The
  68. .IR true
  69. utility has been retained in this volume of POSIX.1\(hy2017, even though the shell special
  70. built-in
  71. .BR :
  72. provides similar functionality, because
  73. .IR true
  74. is widely used in historical scripts and is less cryptic to novice
  75. script readers.
  76. .SH "FUTURE DIRECTIONS"
  77. None.
  78. .SH "SEE ALSO"
  79. .IR "Section 2.9" ", " "Shell Commands",
  80. .IR "\fIfalse\fR\^"
  81. .\"
  82. .SH COPYRIGHT
  83. Portions of this text are reprinted and reproduced in electronic form
  84. from IEEE Std 1003.1-2017, Standard for Information Technology
  85. -- Portable Operating System Interface (POSIX), The Open Group Base
  86. Specifications Issue 7, 2018 Edition,
  87. Copyright (C) 2018 by the Institute of
  88. Electrical and Electronics Engineers, Inc and The Open Group.
  89. In the event of any discrepancy between this version and the original IEEE and
  90. The Open Group Standard, the original IEEE and The Open Group Standard
  91. is the referee document. The original Standard can be obtained online at
  92. http://www.opengroup.org/unix/online.html .
  93. .PP
  94. Any typographical or formatting errors that appear
  95. in this page are most likely
  96. to have been introduced during the conversion of the source files to
  97. man page format. To report such errors, see
  98. https://www.kernel.org/doc/man-pages/reporting_bugs.html .