Environment variables: Difference between revisions
Content added Content deleted
(add link to Delphi for pascal) |
(→{{header|UNIX Shell}}: These things are Unix standard, not bash-specific. The env utility does not print to "the screen". Mention the export command.) |
||
Line 491: | Line 491: | ||
=={{header|UNIX Shell}}== |
=={{header|UNIX Shell}}== |
||
In |
In the Unix Shell Language, environment variables are available as ordinary variables: |
||
<lang bash>echo $HOME</lang> |
<lang bash>echo $HOME</lang> |
||
An ordinary variable can be marked as an environment variable with the <code>export</code> command: |
|||
⚫ | |||
<lang bash>export VAR</lang> |
|||
Now child processes launched by the shell will have an environment variable called <code>VAR</code>. |
|||
⚫ | |||
=={{header|Ursala}}== |
=={{header|Ursala}}== |