Skip to content

Adjust record separator when --zero-terminated is specified #530

Description

@dspinellis

In common with GNU sed, the record separator should be appropriately adjusted (probably stored in context) for delimiting both input and output records. Currently:

$ printf 'hello\0world\0' | sed -z =  | rsed -n l
1\000hello\0002\000world\000$
$ printf 'hello\0world\0' | rust-sed -z =  | rsed -n l
1$
hello\000world\000$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions