nmh-workers
[Top] [All Lists]

[Nmh-workers] [Patch] Relative MH variable lossage

2016-01-18 16:01:47
Hello,

It seems that using a non-absolute MH variable doesn't work when an MH
program chdir's and exec's a child that needs to read the
profile. (Example below involving show and mhshow.)

By inspection, setting MH to the resolved, absolute pathname inside
context_read suffices to solve the problem I've encountered, but I don't
know the overall codebase well enough to understand if it goofs up
something elsewhere.

Thank you,
Richard

$ pwd
/home/me/test
$ cat mh-profile
Path: test/Mail
Unseen-Sequence: unseen
$ export PATH=/usr/local/nmh/bin:$PATH MH=mh-profile; scan cur > /dev/null
$ echo $?
0
$ export PATH=/usr/local/nmh/bin:$PATH MH=mh-profile; show cur > /dev/null
mhshow: unable to read the `/home/me/test/Mail/inbox/mh-profile' profile 
specified by your MH environment variable
$ echo $?
1

Attachment: mh-relative.patch
Description: Coerce $MH to an absolute pathname in context_read.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] Current Thread [Next in Thread>