[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash script - quotes in variables



On Fri, 2005-03-18 at 03:42 +0300, Dmitry Yakovkin wrote:

> cat $NEWSPAGE | sed -f $FILTER| mail deemon@gmail.com $MAIL_OPTS -s "$SUBJECT"

Variable expansion occurs after quote removal, iirc. Hence, to introduce another
round of quote removal, try prepending an eval:

cat $NEWSPAGE | sed -f $FILTER | eval mail deemon@gmail.com $MAIL_OPTS -s "$SUBJECT"

Regards, Bruno.





Reply to: