On May 19, 2016 12:49:25 AM GMT+02:00, Igor Mironov <mcs6502-...@yahoo.com.au> wrote: >The packages and ports' FAQ mentions that those using doas need to pass >keepenv { PKG_PATH } in the config file. Is there a way to instruct >doas to take PKG_PATH (or another variable) from the target account's >environment (~/.profile)?
As pointed out, $PKG_PATH might not be the solution, but $ doas env PKG_PATH="$PKG_PATH" pkg_add ... Would work for you, unless you want to restrict doas to a certain command. Not that it matters much if you'd allow any custom PKG_PATH anyway. /Alexander /Alexander