security/doas can't work with zsh alias

Roger Pate roger at qxxy.com
Thu Jul 20 03:53:19 UTC 2017


On Mon, Jun 26, 2017 at 8:25 AM, alphachi <alphachi at mediaspirit.org> wrote:
> I'm preparing to migrate to doas and the following commands are my test:
>
...
> % echo $SHELL
> /usr/local/bin/zsh
> % doas echo $SHELL
> /usr/local/bin/zsh

Would you rather test the following?

% doas printenv SHELL
(note when $SHELL's value is expanded in yours vs mine)

As you mentioned in another reply, you do indeed want your shell to
expand your aliases for doas commands before executing doas, which the
trailing space (alias doas='doas ') indicates.


More information about the freebsd-questions mailing list