bug-coreutils
[Top][All Lists]
Advanced

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

bug#6293: git-version-gen: Add support for a git tag transformation sed


From: Eric Blake
Subject: bug#6293: git-version-gen: Add support for a git tag transformation sed script
Date: Fri, 28 May 2010 09:03:08 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b1 Mnenhy/0.8.2 Thunderbird/3.0.4

On 05/28/2010 09:00 AM, Jim Meyering wrote:
> Or better still, don't use echo at all, in case
> some tag starts with "-":
> 
> -    && v=`echo $v | sed "$tag_sed_script"` \
> +    && v=`printf %s "$v" | sed "$tag_sed_script"` \

Some sed required the trailing newline; you need to use:

v=`printf %s\\n "$v" | sed "$tag_sed_script"`

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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