[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quoting and parentheses in ExecResult?

From: Adrian Phillips
Subject: Re: quoting and parentheses in ExecResult?
Date: Mon, 15 Aug 2005 07:27:59 +0200
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3 (gnu/linux)

>>>>> "Steve" == Steve Wray <address@hidden> writes:

    Steve> In trying to use ExecResult to do some manipulation of
    Steve> lists, I found some interesting and unexpected results.

    Steve> The variable in this example:

    Steve> someresult = ( ExecResult(/bin/sh "/bin/echo baz|/bin/sed
    Steve> -e \"s/^\(.*\)$/&.conf/g\"") )

    Steve> is set to:

    Steve> <$/&.conf/g\"")>

    Steve> Thats delimited with the angle brackets for clarity.

    Steve> I've tried various combinations of quoting and
    Steve> backslash-escaping here, but its not working.

Ah, quoting hell. When I start to backslash my quotes like this I
normally switch to perl and use q{} and qq{}.



Who really wrote the works of William Shakespeare ?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]