Edmond Rodriguez on 16 Sep 2010 13:26:12 -0700 |
On Thu, Sep 16, 2010 at 3:54 PM, sean finney > eval cat $FILE1 $VCIDS > $FILE2 > > though this will fail miserably if FILE1/FILE2/VCIDS contain quotes, shell > metacharacters, word-splitting characters, etc. so that's a "B-" answer :) Well, I may be repeating something you covered in the links, but would this be a simple solution to possible issues? Would escaping the $'s provide a possible simple solution to a not too complex line, if they were serving only as variable holders and did not need to be resolved before the eval? Sorry if any redundancy in reply. I just was thinking about this one issue for now. * export SOMENAME="abc'def'g" * echo $SOMENAME abc'def'g *eval echo $SOMENAME abcdefg <---- this is missing single quotes. *eval "echo \$SOMENAME" abc'def'g <----- single quotes as expected. ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|