Hello world/Standard error: Difference between revisions

Content added Content deleted
m ({{omit from|GUISS}})
(Add C Shell, delete redundant UnixPipes.)
Line 471: Line 471:


=={{header|UNIX Shell}}==
=={{header|UNIX Shell}}==
{{works with|Bourne Shell}}
<lang bash>echo "Goodbye, World!" > /dev/stderr</lang>

{{works with|Bash}}
<lang bash>echo "Goodbye, World!" >&2</lang>
<lang bash>echo "Goodbye, World!" >&2</lang>


=={{header|UnixPipes}}==
==={{header|C Shell}}===
<lang bash>echo "Goodbye, World!" 1>&2</lang>
<lang csh>echo "Goodbye, World!" >/dev/stderr</lang>

This requires <code>/dev/stderr</code>, a device from [[BSD]] and some other Unix clones. This commands works with both Bourne Shell and C Shell.


=={{header|X86 Assembly}}==
=={{header|X86 Assembly}}==