Mailing List Archive


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

Re: [tlug] using mutt in a bash script: Quoting Wierdness



Michal Hajek wrote:

>     cat ... -F ./mymuttrc $myline 

Quoting shell variables is prudent. I.e., 

     cat ... -F ./mymuttrc "$myline" 

> $cat test.adr
> "My friend <fr@example.com>"
> "My enemy <en@example.com>"
> "Your friend <yf@example.com>"
> $

Those quotes seem wierd. 
I would _remove_ the quotes from test.adr, 
or put them around _just_ the names. I.e.,: 

   My friend <fr@example.com>
   My enemy <en@example.com>
   Your friend <yf@example.com>

or

   "My friend" <fr@example.com>
   "My enemy" <en@example.com>
   "Your friend" <yf@example.com>

I don't know if this is related to your problem. 
Of course, someone else will have a solution which 
will make your shell script moot. 

Jim



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links