🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #400

Further problems with command aliases

#400
From: Nino Margetic
Date: Tue, 26 Jun 1990 08:33
48 lines
2265 bytes
On Jun 22,  6:10, Dan Heller wrote:
>
> > nino@mph.sm.ucl.ac.UK (Nino Margetic) writes:
> > I have defined following commands:
> >    cmd forward 'unset record;mail -f \!* ;set record=~/Mail/sent'
> > When I try to pipe anything to the forward command, ie:
> >    pick 'blah blah' | forward
> > it doesn't work as I'd like it, but instead it forwards the current message.
> > Am I missing something?
> 
> The cmd you are using has semi-colons in it -- this terminates the
> message lists passed thru pipes.  You should modify your cmd:
> 
>     cmd forward 'unset record | mail -f \!* ;set record=~/Mail/sent'
> 
> Note that the 2nd semicolon remained because you can't pipe out of
> the mail command.  The first pipe is unaffected by the unset command
> because unset doesn't affect any messages.
> 

This command now works fine with the pipe, BUT it doesnt work when issued 
from the command line WITHOUT the message number, ie, if I do something like:

prompt N> for<RET>
To: whoever@wherever<RET>

it DOES NOT do it's job, although it DOES prompt whome to send the
message. However, if one does it in the following way:

prompt N> for N<RET>
To: whoever@wherever<RET>

Forwarding message N ....

then the message actually gets forwarded. In the original cmd this wasn't
the problem. Is there a way to have both problems solved at once?

--Nino

-- 
Janet: nino@uk.ac.ucl.sm.mph                     \    Nino Margetic
Earn/Bitnet: nino%mph.sm.ucl.ac.uk@ukacrl.bitnet  \   Dept. of Medical Physics
Internet: nino%mph.sm.ucl.ac.uk@nsfnet-relay.ac.uk \  University College London
Uucp: ....!mcvax!ukc!ucl-mph!nino                   \ Tel: (+44)(071) 380-9846
-----
What is mind?  No matter.
What is matter?  Never mind.
		-- Thomas Hewitt Key, 1799-1875
Technical Details
Message-ID: <2912.9006260833@mph.sm.ucl.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!mph.sm.ucl.ac.UK!nino

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!mph.sm.ucl.ac.UK!nino
From: nino@mph.sm.ucl.ac.UK (Nino Margetic)
Newsgroups: comp.mail.mush
Subject: Further problems with command aliases
Message-ID: <2912.9006260833@mph.sm.ucl.ac.uk>
Date: 26 Jun 90 08:33:29 GMT
Sender: daemon@athena.mit.edu (Mr Background)
Organization: University College London - Dept. of Medical Physics
Lines: 48