<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [Cook] Escaping shell characters</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Cook provides the [quote ....] function for just that purpose:<BR>
sed -n -e [quote 's/\\xyzzy{\(.*\)}/gp'] %0%.aux > [target] ;<BR>
<BR>
<BR>
Jerry Pendergraft voice:651-523-6935<BR>
St.Jude Medical mobil:651-491-0163<BR>
Atrial Fibrillation Division email:jpendergraft@sjm.com<BR>
1350 Energy Lane<BR>
St.Paul, MN 55108<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: cook-users-bounces+jpendergraft=sjm.com@auug.org.au on behalf of John Darrington<BR>
Sent: Sun 29-Jan-06 21:21<BR>
To: cook-users@auug.org.au<BR>
Subject: [Cook] Escaping shell characters<BR>
<BR>
How can I pass quoted expressions in a rule? Cook insists on pinching<BR>
the ' characters so that the expression gets passed to the shell<BR>
unquoted, and therefore completely screws up. Such as:<BR>
<BR>
%0%.aux.d: %0%.aux<BR>
{<BR>
sed -n -e 's/\\xyzzy{\(.*\)}/gp' %0%.aux > [target] ;<BR>
}<BR>
<BR>
This problem, so far as I can tell means that only very trivial sed<BR>
examples can be used in cook.<BR>
<BR>
J'<BR>
<BR>
<BR>
--<BR>
PGP Public key ID: 1024D/2DE827B3<BR>
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3<BR>
See <A HREF="http://pgp.mit.edu">http://pgp.mit.edu</A> or any PGP keyserver for public key.<BR>
<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>