Re: Symbolic link to mhmail

David Levine <[email protected]>
Newsgroups gmane.mail.nmh.devel
Message-ID <[email protected]>
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`.

Or instead of trying to find the location at runtime, configure could be
used to at build time to insert the path into the mhmail script.  And the
same could be done with etc/sendfiles.

Thoughts?

David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.