Environment variables: Difference between revisions

Content added Content deleted
(Corrected tags)
(Add Vlang)
Line 1,224: Line 1,224:
'SHELL': '/bin/bash',
'SHELL': '/bin/bash',
'X11BROWSER': '/usr/bin/firefox'></pre>
'X11BROWSER': '/usr/bin/firefox'></pre>

=={{header|Vlang}}==
<lang vlang>// Environment variables in V
// v run environment_variables.v
module main

import os

pub fn main() {
print('In the $os.environ().len environment variables, ')
println('\$HOME is set to ${os.getenv('HOME')}')
}</lang>

{{out}}<pre>prompt$ v run environment-variables.v
In the 64 environment variables, $HOME is set to /home/btiffin</pre>


=={{header|Vedit macro language}}==
=={{header|Vedit macro language}}==