bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: sed numbered fields don't start from parenthesis


From: Eric Blake
Subject: Re: sed numbered fields don't start from parenthesis
Date: Wed, 05 Nov 2014 17:02:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 11/02/2014 01:32 AM, blind Pete wrote:

>> Sorry, but the behavior you see is mandated by POSIX, and not a bug.
> 
> I was completely wrong.  
> 
> Could the man pages me made more obvious by adding a line like, 
> "Note: only matched sections are processed, others are passed though
> unchanged.".  

Where in the man page are you proposing adding it?  But I already see
this in 'man sed':


       s/regexp/replacement/
              Attempt  to match regexp against the pattern space.  If
success‐
              ful,  replace  that  portion  matched  with  replacement.

where the "replace that portion matched" implies that the portion not
matched is preserved unchanged.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
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]