-
Notifications
You must be signed in to change notification settings - Fork 2.1k
skip shouldn't work with external streams #12514
Copy link
Copy link
Closed
Labels
category:enhancementNew feature or requestNew feature or requeststatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look
Milestone
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category:enhancementNew feature or requestNew feature or requeststatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look