Package com.pnfsoftware.jeb.util.base
Class BashHelper
java.lang.Object
com.pnfsoftware.jeb.util.base.BashHelper
Helper to interact with
bash
terminals.
This helper can be used to retrieve bash environment variables (variables not defined system-wide).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BashHelper
public BashHelper()
-
-
Method Details
-
env
Get a key-value map of the environment variables provided within a Bash interactive session.- Returns:
- a map, never null
-
env
Get an environment variable provided within a Bash interactive session.- Parameters:
varname
- variable name- Returns:
- the value, or null if none is defined
- Throws:
NullPointerException
- if `varname` is null
-