Skip to content

skip shouldn't work with external streams #12514

@kaathewisegit

Description

@kaathewisegit

Related problem

Currently skip can be used with external streams. It's behavior is weird, though, because it truncates the output to the first line:

/tmp> ^ls -l
total 0
drwx------    5 kaathewi kaathewi       280 Apr 14 19:19 1000-runtime-dir
drwx------    2 kaathewi kaathewi        40 Apr 14 18:16 Temp-6b7eb1f7-b5dd-44b5-b5ff-a331fadee31d
srwxrwxrwx    1 kaathewi kaathewi         0 Apr 14 18:15 dbus-XGGa2R2Bxl
/tmp> ^ls -l | skip 1
Length: 7 (0x7) bytes | printable whitespace ascii_other non_ascii
00000000:   6f 74 61 6c  20 30 0a                                otal 0_

Describe the solution you'd like

Disallow raw streams for skip. It's already disabled for first and last.

Describe alternatives you've considered

I'm unsure how skip can be made to work with string streams. In theory it can be made to work like byte at, but the latter doesn't support external streams either.

Additional context and details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions