[Cook] Escaping shell characters

Pendergraft, Jerry JPendergraft at sjm.com
Wed Feb 1 04:02:28 EST 2006


Cook provides the [quote ....] function for just that purpose:
  sed  -n -e [quote 's/\\xyzzy{\(.*\)}/gp']  %0%.aux > [target] ;


Jerry Pendergraft                              voice:651-523-6935
St.Jude Medical                                mobil:651-491-0163
Atrial Fibrillation Division                email:jpendergraft at sjm.com
1350 Energy Lane
St.Paul, MN  55108






-----Original Message-----
From: cook-users-bounces+jpendergraft=sjm.com at auug.org.au on behalf of John Darrington
Sent: Sun 29-Jan-06 21:21
To: cook-users at auug.org.au
Subject: [Cook] Escaping shell characters
 
How can I pass quoted expressions in a rule? Cook insists on pinching
the ' characters so that the expression gets passed to the shell
unquoted, and therefore completely screws up.  Such as:

%0%.aux.d: %0%.aux
{
  sed  -n -e 's/\\xyzzy{\(.*\)}/gp'  %0%.aux > [target] ;
}

This problem, so far as I can tell means that only very trivial sed
examples can be used in cook.

J'


-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.auug.org.au/pipermail/cook-users/attachments/20060131/03ca7a4f/attachment.htm>


More information about the Cook-users mailing list