Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csplit: issues reading from pipe #6461

Open
mtekel opened this issue Jun 11, 2024 · 0 comments
Open

csplit: issues reading from pipe #6461

mtekel opened this issue Jun 11, 2024 · 0 comments

Comments

@mtekel
Copy link

mtekel commented Jun 11, 2024

Hi,

with csplit-0.0.25 (also present in 0.0.22 already, I didn't test any other versions than these two, but release notes of 0.0.26 (latest at the time of this ticket) don't indicate changes/fix for this):

csplit -f "mycerts-" -b "%01d.crt" -z <(echo "my special certs") '/-----BEGIN CERTIFICATE-----/' '{*}'
csplit: '/proc/self/fd/11' is not a regular file

The redirect is a standard pipe:

# stat <(echo "my special certs")
  File: '/proc/self/fd/11' -> 'pipe:[142282]'
  Size: 64        	Blocks: 0          IO Block: 1024   symbolic link
Device: 2ch/44d	Inode: 142708      Links: 1
Access: (0500/lr-x------)  Uid: (    0/C5382917)   Gid: (    0/    root)
Access: 2024-06-11 10:06:35.660004597 +0000
Modify: 2024-06-11 10:06:35.660004597 +0000
Change: 2024-06-11 10:06:35.660004597 +0000
 Birth: -

OS:

# uname -a
Linux mycontainer 6.6.30-0-virt #1-Alpine SMP Mon, 06 May 2024 07:55:42 +0000 aarch64 GNU/Linux

I have also tested with x86-64 container and it has same issue as aarch64.

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

No branches or pull requests

2 participants