-
-
Notifications
You must be signed in to change notification settings - Fork 911
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
Process substition in BASH fails. #164
Comments
What's missing now is the very weird (to me) linux behavior where pipe file descriptors appear to be broken symlinks but can actually be opened, and become a second file descriptor for the same pipe. |
@tbodt any hints to fix this ? as an example we can't leverage powerline10k or any advanced (and very useful features) of ZSH :( Do you need more tests from us ? Keep up the awesome work, discovered your app few days ago , NIFTY !!!! |
The problem is well understood (#164 (comment)) but I am not quite sure how to solve it. |
This is pretty much over my head but I've been looking around a bit and I stumble upon microsoft/WSL#266 which addresses the same thing(?). I'm not sure if it's helpful, but maybe... |
Yeah, WSL had the same problem. Not much info there about how they solved it though. |
I apologize that this is also over my head, but maybe it's buried in one or more commits for their kernel? I tried to create a narrow search that could hopefully be a starting point. |
The bug report linked is for WSL 1, which is not open source. This was never a problem in WSL 2. |
I wish I was a developer... For what it's worth I asked in the WSL issue if there would be any possibility for them to share how it was solved. I'm not sure how I'm able to help in any other way. The worst that can happen is no one answers or we get a no. |
Any solution to fix this issue? |
Is this thread still going? Came across this problem and is now mildly infuriating me |
@tbodt just ran across this issue and dropped a dirty quick fix at #1716 |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@tbodt there seems to be a solution now, so I'd like to bring this to your attention again. |
What’s weird is that the pipe still gets created. |
Is this related? https://gitlab.alpinelinux.org/alpine/aports/-/issues/1465 |
@annpocoyo: I'm seeing this on mine: File: '/dev/fd/63' -> 'anon_inode:[unknown]'
Size: 0 Blocks: 0 IO Block: 0 symbolic link
Device: 0h/0d Inode: 17732923551252482 Links: 0
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 1970-01-01 00:00:00.000000000 +0000
Modify: 1970-01-01 00:00:00.000000000 +0000
Change: 1970-01-01 00:00:00.000000000 +0000 when I run stat. The symlink is indeed created, but it's not linked to a pipe as it should be (from what I gather from a bunch of reading I've been doing). More so, I noticed strangely that running processes in general are not being created as one would expect: > sleep 1000 &
[1] 221
> lsof -p 221
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sleep 221 root cwd unknown /proc/221/cwd (readlink: No such file or directory)
sleep 221 root rtd unknown /proc/221/root (readlink: No such file or directory)
sleep 221 root txt REG 1,8 808104 4317863 /bin/busybox
sleep 221 root 0u CHR 136,0 3 /dev/pts/0
sleep 221 root 1u CHR 136,0 3 /dev/pts/0
sleep 221 root 2u CHR 136,0 3 /dev/pts/0 I'm not sure this is exactly related but since I discovered this during my reading and research, I figured it might be useful? |
My testing results: iPhone7nABEL:~# ls -la <(:) /proc/self/fd /proc/self/fd: |
Example Script
Expected Result
Actual Result
References
The text was updated successfully, but these errors were encountered: