Include a file: Difference between revisions

Content added Content deleted
(Added COBOL section. Added C++ to C section. Corrected PL/I and x86 syntax highlighting.)
(→‎{{header|UNIX Shell}}: Bash has "source" too)
Line 501: Line 501:
==={{header|C Shell}}===
==={{header|C Shell}}===
<lang csh>source myfile.csh</lang>
<lang csh>source myfile.csh</lang>

==={{header|Bash}}===
<lang shell>. myfile.sh
source myfile.sh</lang>

GNU Bash has both <code>.</code> and the C-Shell style <code>source</code>. See [http://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#index-source Bash manual on <code>source</code>]


=={{header|Vala}}==
=={{header|Vala}}==