On 2016-05-18, 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)?
Not unless you let the target account run a shell. The simplest way is probably to avoid using PKG_PATH (don't set it in keepenv) and put the path in /etc/pkg.conf instead.