GNU bug report logs - #63958
Manual doesn't mention that spaces are allowed between address and command.

Previous Next

Package: sed;

Reported by: Sebastian Carlos <sebaaa1754 <at> gmail.com>

Date: Thu, 8 Jun 2023 09:00:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Carlos <sebaaa1754 <at> gmail.com>
To: bug-sed <at> gnu.org
Subject: Manual doesn't mention that spaces are allowed between address and
 command.
Date: Thu, 8 Jun 2023 10:59:41 +0200
[Message part 1 (text/plain, inline)]
Hello,

Section "3.1 sed script overview" says:

> sed commands follow this syntax:
> [addr]X[options]
> X is a single-letter sed command. [addr] is an optional line address...

Considering that I've seen this misconception repeated in several places
online, and considering that sed's POSIX specification is more clear on the
matter ("[address[,address]]function [...] The function can be preceded by
<blank> characters. These optional characters shall have no effect."), i
suggest adding this piece of information to this section of the manual.

Thanks for your time.
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.