procmail
[Top] [All Lists]

Re: mv error in trap?

2009-05-07 19:51:12
On Thu, May 07, 2009 at 11:46:54AM -0600, LuKreme wrote:

{ 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"' }

That latter should work.

Dallman
____________________________________________________________
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>