When I execute `sudo fish` with fish 2.7.1-1367-g3de705742, it gets stopped immediately. - `sudo` is a command - other shells (e.g. `sudo bash`) work - preexec events in the outer fish don't seem to matter (i.e. I can remove `__fish_disable_bracketed_paste` and still trigger the bug) I imagine that's because of #5133.
Activity
mqudsi commentedon Aug 16, 2018
I can't reproduce.
mqudsi commentedon Aug 16, 2018
Do you have a custom prompt or right prompt?
faho commentedon Aug 16, 2018
I do, but I can reproduce this even without them.
You're on WSL, which has diverged quite a bit in the job handling code, so it's possible it's not setting up the pgroups in quite the same way.
mqudsi commentedon Aug 16, 2018
I thought about that, but I ended up changing WSL to exhibit similar job control to Linux in recent commits.
In all cases:
So it might be a glibc bug instead.
zanchey commentedon Aug 18, 2018
WFM here with 2.7.1-1388-g7606bfc2 and glibc 2.24-11+deb9u3.
ridiculousfish commentedon Aug 18, 2018
This repros for me on my Linux box. It does bisect to #5133.
ridiculousfish commentedon Aug 19, 2018
This got reopened - did my fix not work for you?
faho commentedon Aug 20, 2018
Works for me. @mqudsi?
mqudsi commentedon Aug 20, 2018
I wasn't aware of reopening it; but I did view this issue on my iPhone so perhaps I fat fingered it or touched it inadvertently.
Stop acquiring the terminal before running builtins