bug-sed
[Top][All Lists]
Advanced

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

bug#51462: sed bug: ASCII NUL not handled in simple pattern


From: Frances Wingerter
Subject: bug#51462: sed bug: ASCII NUL not handled in simple pattern
Date: Thu, 28 Oct 2021 15:25:42 +0000

I'm using sed 4.8 (`sed (GNU sed) 4.8` per `sed --version`) on x86_64
Arch Linux.

Compare the output of these two sed invocations:
```
$ echo -e 'a\nb\n\0\nc\n' | sed -e '/\0/,$d'
a
b

c

```
and
```
$ echo -e 'a\nb\n\v\nc\n' | sed -e '/\v/,$d'
a
b
```

The latter is the expected behavior, but when input and pattern use
`\0`, sed seems to miss the matches and never triggers.

Hopefully this should be an easy fix.
Thanks,
Frances





reply via email to

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