VI and MAILX (was: Re: question about vi)

Kent Forschmiedt kent at happym.UUCP
Thu May 26 09:40:12 AEST 1988


[ when entering mail in mailx, ~v at the beginning of a line
  will invoke the editor named in the VISUAL variable.
  Dave Decot suggests this alias: ]
>
>alias mailto 'vi /tmp/mail.$$ && | /usr/bin/mailx \!* < /tmp/mail.$$'

I would revise that to:

alias mailto 'vi /tmp/mail.$$ && | /usr/bin/mailx \!* < /tmp/mail.$$; rm -f /tmp/mail.$$'

Assuming that the ";" works the same in csh as in sh.

-- 
--
	Kent Forschmiedt -- kent at happym.UUCP, tikal!camco!happym!kent
	Happy Man Corporation  206-282-9598



More information about the Comp.unix.questions mailing list