Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Echo (command)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==History== <code>echo</code> began within [[Multics]]. After it was programmed in [[C (programming language)|C]] by [[Douglas McIlroy|Doug McIlroy]] as a "finger exercise" and proved to be useful, it became part of [[Version 2 Unix]]. <code>echo -n</code> in [[Version 7 Unix|Version 7]] replaced <code>prompt</code>, (which behaved like <code>echo</code> but without terminating its output with a line delimiter).<ref name="reader" /> On [[PWB/UNIX]] and later [[Unix System III]], <code>echo</code> started expanding [[Escape sequences in C|C escape sequences]] such as <code>\n</code> with the notable difference that octal escape sequences were expressed as <code>\0ooo</code> instead of <code>\ooo</code> in C.<ref name="mascheck-echo" /> [[Research Unix|Eighth Edition Unix]] <code>echo</code> only did the escape expansion when passed a <code>-e</code> option,<ref name="man echo" /> and that behaviour was copied by a few other implementations such as the builtin <code>echo</code> command of [[Bash (Unix shell)|Bash]] or [[zsh]] and GNU <code>echo</code>. On [[MS-DOS]], the command is available in versions 2 and later.<ref name="RUNNINGMSDOS" />
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)