Skip to main content

variable

Function variable 

Source
pub fn variable(name: &str) -> Option<String>
Expand description

What one variable carries, or None where it is unset or blank.

A variable set to the empty string is a variable the shell exported and nothing filled in. Treating it as a path would resolve every root to the filesystem root.