Of course, that was the first thing that came to mi mind, too. But it didn't work -- unfortunately I can't give you more details as it was a friend's script, yet I couldn't stop thinking about it. I thought maybe one could change the meaning of the spaces, e.g. by assigning something to IFS? Even if it was a mistake -- is there no other way then quoting? A quick look at some manuals gave me the impression that this problem might not be just a silly mistake of mine, can it?
On Wed, Jan 23, 2002 at 03:58:04PM -0600, Colin Watson wrote: > On Wed, Jan 23, 2002 at 10:49:54PM -0100, andrej hocevar wrote: > > Quite self-explanatory -- how to make a string of space-separated > > words act like a single variable, e.g. first argument being the > > recipient and the second the message or similar? > > Quote them. Use double quotes if you want parameter substitution to > happen inside the quotes, such as "$foo $bar". > > -- > Colin Watson [EMAIL PROTECTED] > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]