2 votes
Accepted

Set PATH for /bin/sh in Debian:11 image

For /bin/sh in Debian (dash), /etc/profile and so on are only used for login shells. For non-login shells, you can specify a startup script to use in the ENV environment variable. At the end of your ...
Stephen Kitt's user avatar
1 vote

How to prepend a prefix to variables sourced from a config/env file

A slight addition to @xhienne's answer, with a regexp that will recognize # at beginning-of-line as a comment, and some QED exercises showing that both sourcing and exporting work using this techique. ...
Jim L.'s user avatar
  • 7,399
1 vote

How to prepend a prefix to variables sourced from a config/env file

Here is a naive solution using sed: source <(sed 's/[^=]\+=/export my_app_&/' local.env) I call this "naive" because I assume that each line containing an equal sign is a variable ...
xhienne's user avatar
  • 17.6k
1 vote

What is the `COLOR` environment variable?

As you saw, there is no standardization on such field. There were some discussion (some also recently) to standardize one environment so that programs know if they should use colors or not, but such ...
Giacomo Catenazzi's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible