On Monday 04 August 2008 10:44:02 am Nicholas Blatter wrote:
> Surely there must be a way to embed quotes into a string, is there not?

You have successfully embedded quotes into the string.  The cat in your 
script proves it.  Bash's limitation is in interpreting the quoted string as 
one argument as opposed to several arguments that happen to have a quotes.  
eval ensures the entire string is evaluated as a command with quoted 
parameters, not a command with a string.

-- 
Alberto Treviño
BYU Testing Center
Brigham Young University

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to