Re: sed bug report - segmentation fault

Jim Meyering <[email protected]> Mon, 20 Apr 2015 09:37:38 -0700
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <CA+8g5KF9kuqX9LriE3tXjBJhZKk3+RTkwQ8pAPDMhXqT-vjxHA@mail.gmail.com>
On Mon, Apr 20, 2015 at 4:08 AM, Jose E. Marchesi <[email protected]> wrote:
>
>         > I've found that sed gets a segfault when running the following command
>         > on any text file with greater than one line.
>         > sed -e 1L32768 test.txt
>
>         The L command is documented as broken and to be removed in a future
>         release.  It is not Posix.
>
>     No GNU (or other, as far as that goes) program should crash, regardless.
>     If the fix is to remove L, fine, but the bug should not be ignored.
>     (I reproduced it just as reported, BTW.)
>
> Agreed.  Removing L is probably the best option, as it has been
> documented as broken and obsolescent for a while now.  Will push a patch
> for that.

Thanks, Jose.
Note that it is already gone in git. Here's the blurb from NEWS:

** Feature removal

  The "L" command (format a paragraph like the fmt(1) command would)
  has been listed in the documentation as a failed experiment for at
  least 10 years.  That command is now removed.