Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sdcrdcf.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!lwall From: lwall@sdcrdcf.UUCP (Larry Wall) Newsgroups: net.sources.bugs Subject: rn 4.3 patch #12 Message-ID: <1999@sdcrdcf.UUCP> Date: Mon, 20-May-85 19:30:34 EDT Article-I.D.: sdcrdcf.1999 Posted: Mon May 20 19:30:34 1985 Date-Received: Thu, 23-May-85 03:29:46 EDT Organization: System Development Corp. R+D, Santa Monica Lines: 92 System: rn version 4.3 Patch #: 12 Priority: LOW Subject: Rnmail shouldn't ask editor if EDITOR or VISUAL defined From: markb@cbosgd.UUCP (Mark Horton) Description: Pnews doesn't ask you for your editor if you have EDITOR or VISUAL defined. Rnmail should (shouldn't?) do likewise. Fix: From rn, say "| patch -d DIR", where DIR is your rn source directory. Outside of rn, say "cd DIR; patch Patch #: 12 Index: Rnmail.SH Prereq: 4.3.1.2 *** Rnmail.SH.old Mon May 20 16:26:20 1985 --- Rnmail.SH Mon May 20 16:26:27 1985 *************** *** 4,10 echo "Extracting Rnmail (with variable substitutions)" $spitshell >Rnmail <Rnmail <>${HOME-$LOGDIR}/dead.letter ; $echo saved in ${HOME-$LOGDIR}/dead.letter ; $rm -f $tmpart; exit" trap "$rescue" 1 trap : 2 ! tmp=h while $test "$tmp" = h ; do $echo $n "Editor [${VISUAL-${EDITOR-$defeditor}}]: $c" read tmp --- 176,189 ----- rescue="sleep 1; $cat $tmpart >>${HOME-$LOGDIR}/dead.letter ; $echo saved in ${HOME-$LOGDIR}/dead.letter ; $rm -f $tmpart; exit" trap "$rescue" 1 trap : 2 ! case "${VISUAL-${EDITOR-}}" in ! '') ! tmp=h ! ;; ! *) ! tmp='' ! ;; ! esac while $test "$tmp" = h ; do $echo $n "Editor [${VISUAL-${EDITOR-$defeditor}}]: $c" read tmp