procmail
[Top] [All Lists]

mv error in trap?

2009-05-07 13:47:14
{ TRAP='mv $LASTFOLDER ${LASTFOLDER}:2,S' }

gives me:

usage: mv [-f | -i | -n] [-v] source target
       mv [-f | -i | -n] [-v] source ... directory

if the $LASTFOLDER name contains a space.

can i just

{ TRAP='mv $\LASTFOLDER ${LASTFOLDER}:2,S' }

or

{ TRAP='mv "$LASTFOLDER" "${LASTFOLDER}:2,S"' }


??

--
Anybody who could duck the Vietnam war can certainly duck a couple of
shoes. -- Chris Gehlker

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>