Environment variables: Difference between revisions
Content deleted Content added
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:
=={{header|UNIX Shell}}==
In
<lang bash>echo $HOME</lang>
An ordinary variable can be marked as an environment variable with the <code>export</code> command:
In Bash, the "env" command will print out all the key=value pairs to the screen.▼
<lang bash>export VAR</lang>
Now child processes launched by the shell will have an environment variable called <code>VAR</code>.
▲
=={{header|Ursala}}==
|