# check with text file that does not end with newline
# in mmh this is invalid
printf 'Editor: emacs' >>"$MMHP"
+export VISUAL=ed
runandcheck 'mhparam -nocomponent editor' <<!
mhparam: `cat test-temp-dir`/.mmh/profile2 is poorly formatted
+$VISUAL
!
+unset VISUAL
exit