[comp.mail.mush] mush "cmd" oddity

morgan@ogicse.cse.ogi.edu (Clark O. Morgan) (02/23/91)

I noticed something interesting tonight...don't know if it's a bug
or feature.  I created a 'cmd' for "q" that prevents me from carelessly
exiting an xterm that is invoked solely to read mail.  The cmd looks
like so:

   cmd q       "echo Type 'quit' to quit."

The cmd works, of course.  Now for the interesting part.  If I type 'q'
in shell mode when my mail drop is the current folder, I get what
appears to be a warning message from Mush.  If I type 'q' when +mbox is
my current folder, no warning appears.

Script started on Fri Feb 22 23:17:23 1991
$ mush -S -n
Mail User's Shell (7.1.2 7/11/90): Type '?' for help.
"/usr/spool/mail/morgan": 0 messages, 0 new, 0 unread
(morgan) 0/0: cmd
:     	curses
curr     	from - .
goto     	from - !*
q     	echo Type 'quit' to quit.
(morgan) 0/0: q
(ucb-command: "q" aliased to "echo Type 'quit' to quit.")   <--- ???
Type quit to quit.
(morgan) 0/0: fo -N &
"+mbox": 13 messages, 0 new, 0 unread
(mbox) 1/13: q
Type quit to quit.                   <-- No warning message
(mbox) 1/13: quit
$ exit

script done on Fri Feb 22 23:18:00 1991