Hi Tom,
What behaviour do you get with this script run in an empty directory?
$ cat try
#! /bin/bash
PATH=/usr/bin:/usr/bin/mh
unset PAGER
export MH=$PWD/mh
echo path: $PWD >$MH
printf '%s:\n' subject messagename >mhl.format
mkdir -p inbox
for f in 1 2; do
printf 'subject: %s\n' $f >inbox/$f
done
set -x
scan -version
scan
show 1
show 1 2
$
$ ./try
+ scan -version
scan -- nmh-1.6 [compiled on orac at 2016-11-15 11:46:57 +0000 Tue]
+ scan
1 02/05* 1
2+ 02/05* 2
+ show 1
(Message inbox:1)
subject: 1
messagename: (Message inbox:1)
+ show 1 2
>>> inbox:1
subject: 1
messagename: (Message inbox:1)
>>> inbox:2
subject: 2
messagename: (Message inbox:2)
$
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers