Re: Using quotes in bash script parameters

2007-03-14 Thread Marco De Vitis
On 14/03/2007 12:20, Cédric Lucantis wrote: well, hum you see what I mean don't you? :) eval "echo $WARNMSG | $WARNCMD" Yes thanks ;), I already tried it after your second message and was just going to reply now, it indeed works fine. Thanks again. -- Ciao, Marco. -- To UNSUBSCRIBE, em

Re: Using quotes in bash script parameters

2007-03-14 Thread Cédric Lucantis
> > > > eval does the trick: > > > > SUBJECT="This is a test mail" > > WARNMSG="An error occurred" > > WARNCMD="mail -s \"${SUBJECT}\" root" > > echo "echo $WARNMSG | $WARNCMD" > > eval $WARNMSG | $WARNCMD > > oops, sorry, quotes are required here: > > eval "$WARNMSG | $WARNCMD" well, hum you see

Re: Using quotes in bash script parameters

2007-03-13 Thread Cédric Lucantis
Le mercredi 14 mars 2007 02:07, Cédric Lucantis a écrit : > Le mercredi 14 mars 2007 01:04, Marco De Vitis a écrit : > > Hi, > > this is not strictly Debian-related, but I'm doing it on Etch, so... :) > > > > Let's say I'm writing a script like this: > > > #! /bin/bash > > > > > > SUBJECT="This is

Re: Using quotes in bash script parameters

2007-03-13 Thread Cédric Lucantis
Le mercredi 14 mars 2007 01:04, Marco De Vitis a écrit : > Hi, > this is not strictly Debian-related, but I'm doing it on Etch, so... :) > > Let's say I'm writing a script like this: > > #! /bin/bash > > > > SUBJECT="This is a test mail" > > WARNMSG="An error occurred" > > WARNCMD="mail -s \"${SUBJ

Using quotes in bash script parameters

2007-03-13 Thread Marco De Vitis
Hi, this is not strictly Debian-related, but I'm doing it on Etch, so... :) Let's say I'm writing a script like this: #! /bin/bash SUBJECT="This is a test mail" WARNMSG="An error occurred" WARNCM