I wrote:

> Thomas wrote:
>
> > For the reason given above I don't think this would solve it.  I think
> > these results might be even more explicit:
> >
> > $ echo $PATH
> > /usr/bin/mh:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin
> > $ cp /usr/bin/mh/mhmail ./test
> > $ ./test
> > ./test: 1: /home/thomas/mhparam: not found
> > ./test: 95: exec: /home/thomas/inc: not found
>
> The root cause of the problem is that mhmail uses, in effect, `dirname $0`
> to find the location of the nmh executables.
>
> Because /usr/bin/mh is on your PATH, it could instead use `mhparam bindir`.

I just committed that fix to mhmail and sendfiles.

Thank you, Thomas, for reporting this.  Starting with the current HEAD, you
can symlink mhmail.

David

Reply via email to