expandvars

Expand system variables, Unix style

bacaro: haikuports also on HaikuPorts
Also on HaikuPorts. expandvars

Description

This module is inspired by GNU bash's variable expansion features. It can be used as an alternative to Python's os.path.expandvars function.

A good use case is reading config files with the flexibility of reading values from environment variables using advanced features like returning a default value if some variable is not defined.

Install

Channel stable v0.12.0-1

This app is curated in HaikuPorts. Install it from there, it is already available in HaikuDepot.

pkgman install expandvars

Download version 0.12.0-1 (any) hpkg

Careful: the file comes from HaikuPorts' own server, but installing it by hand is not the way in. It is pkgman that resolves the dependencies an .hpkg does not carry with it, and a package installed on its own may simply not run. Use the pkgman command above, unless you know exactly why you want the file.

Reviews