Environment variables
import "std/env.zc"
fn main() {
let shell = Env::get_dup("SHELL").unwrap();
println "";
}
Output:
/bin/bash
Attribution: This is a community solution for the Rosetta Code task Environment variables in Zen C.
This article uses material from the Rosetta Code article Environment variables, which is released under the GNU Free Documentation License 1.3. A list of the original authors can be found in the page history.