bug-sed
[Top][All Lists]
Advanced

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

bug#36202: Add example of how to write the two addresses


From: Eric Blake
Subject: bug#36202: Add example of how to write the two addresses
Date: Thu, 13 Jun 2019 21:28:50 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 6/13/19 6:33 AM, Dan Jacobson wrote:
> (info "(sed) Other Commands") says many times
> 
>      As a GNU extension, this command accepts two addresses.
> 
> You need to give an example of how to write the two addresses!
> 
> You invent an extension, so only you know how to use it. One cannot look
> the usage up elsewhere.

info "(sed) Addresses overview" says:

   An address range is specified with two addresses separated by a comma
(',').  Addresses can be numeric, regular expressions, or a mix of both.

The extension is not how to write two addresses (since POSIX already
requires several commands such as 's' to do so), but that GNU sed
extends the set of commands that take two addresses (where POSIX only
requires the command to take 1).

I think the information you are requesting is already present in the
manual, so it is now a judgment call on whether it can be improved; are
you volunteering to write a patch?

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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