[Top][All Lists]

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

Re: How to echo a "$" to a file in

From: Eric Blake
Subject: Re: How to echo a "$" to a file in
Date: Fri, 02 Jul 2010 08:36:51 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.5

On 07/02/2010 08:34 AM, Lyre wrote:
>  In, I wrote an custom rule which append the program's path to
> the startup script. it looks like:
>     echo $(datadir)/myprogram/program-name $OPTIONS >> /bin/program-name
> I want to get :
>     /usr/share/myprogram/program-name $OPTIONS
> however, waht I accully get is :
>     /usr/share/myprogram/program-name PTIONS
> I try to add an '\' before '$', but it doesn't works.

Automake borrows from make(1) syntax - to print $, use $$.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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