I believe "folder -nocreate +xxx" should return nonzero status when
folder +xxx doesn't exist.  The online MH book says, for MH 6.8.3:

    The only way to tell that "folder -nocreate" failed is by
    checking its exit status.  A non-zero status means the current
    folder wasn't changed.

But in nmh-1.0, both:

    folder -nocreate +xxx

and

    folder +xxx
    Create folder /home/jerry/Mail/xxx? n

return a zero status, and no error message... implying (IMO) that the
current folder is now +xxx.

How else can a programmer (in a shell script or etc.) check to see
whether the folder change failed?  The only other ways to check whether
the folder exists are by using "mhpath +xxx" and then testing if that
directory exists -- or to test the current folder name by running
"folder -fast" after changing the folder.  Both are inefficient and ugly.

There's more info at <http://www.ics.uci.edu/~mh/book/mh/proref.htm>.

As usual, I apologize for not having the time to dig in and suggest a fix.
I think it's more useful to spend my limited free time on book updates.
If you think this is a bug, too, maybe you can suggest a fix?  Thanks.

Jerry
-- 
Jerry Peek, [EMAIL PROTECTED], http://www.jpeek.com/~jpeek/

Reply via email to