On Wed, 31 Aug 2005 11:24:45 +0300, David Harel <[EMAIL PROTECTED]> wrote: > > Hi all, > I really am ashame to ask this question but I did not find an answer for > it in any documentation I searched (I have serious doubts bout my > searching skills). > > Here is a script fragment. > --------------------------- > #!/bin/bash > > subject='Set UID program scan results' > address="[EMAIL PROTECTED]" > mailcommand="mutt $address -s $subject" > > $mailcommand << okfff > Some message body. > > okfff > ---------------------------
The way to overcome this is to use the IFS environment variable. subject='Set UID program scan results' address="[EMAIL PROTECTED]" mailcommand="mutt/$address/-s/$subject" ## space replaced by / IFS="/" ## use / as word separator $mailcommand << okfff Some message body. okfff Of course you can use any other character that is not in your text (e.g ~, =, :, %) but do not try to use characters with shell meaning (e.g. (, ), [, ], <, >, ;, *). Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
