Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!uxb.liverpool.ac.uk!qq11 From: qq11@uxb.liverpool.ac.uk (Alan Thew) Newsgroups: comp.mail.mh Subject: how to overide .mh_profile values Message-ID: <19280.9104191603@uxb.liv.ac.uk> Date: 19 Apr 91 16:03:34 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 34 I was looking at Jerry Peek's recomp shell script, making a few changes (pick up draft folder whatever its name etc) and found it very useful. A problem occurs with my understanding of .mh_profile values vs options on the command line, for example: ........... $mh/comp -use -e ${VISUAL-${EDITOR-${EDIT-vi}}} -draftm $msgnum #$mh/comp -use -e ${VISUAL-${EDITOR-${EDIT-vi}}} -draftm $msgnum -draftf $draftf stat=$? # SAVE comp'S STATUS (IT'S USUALLY 0) FOR OUR exit These are the last lines in the script (the first here was 'added' by me). If line 2 is used, the following message appears when comp starts: comp: only one draft folder at a time My .mh_profile entry for comp is: comp: -editor prompter -draftfolder +draftings I assumed that use of a switch on the command line overrode the profile value, but both appear to being used! What am I doing wrong here or what assumptions should I not have made? Thank you. version: MH 6.7.1 #3[UCI] (uxb) of Sat Mar 9 03:48:33 GMT 1991 options: [BSD42] [ATZ] [BSD43] [MHRC] [SUN40] [UK] [SENDMTS] [SMTP] -- Alan Thew : University of Liverpool Computer Laboratory Internet/Bitnet : qq11@uxb.liv.ac.uk UUCP : ....!mcsun!ukc!liv-uxb!qq11 Voice : +44 51 794 3735 FAX : +44 51 794 3759