Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve dangerous/undefined PID expansion behavior #1008
In Bash, % means something like 'last job backgrounded'. In upstream Fish, it means either "all backgrounded jobs" or "all processes owned by your user" if there are no processes backgrounded.
I usually run
Even further, it turns out
Use Bash-like expansion for empty searches (when you just use a '%' by
'%' will now only match the last valid backgrounded process.
'%' by itself would previously match either all backgrounded
As a result of this change,
Don't run 'by-name' matches when the search term is numeric.
This prevents you from running a command like
Indeed, it sounds dangerous. My suggestion would be to avoid current silly behavior of
But aside of that – even normal
What exactly does solo
I found this article: http://web.mit.edu/gnu/doc/html/features_5.html#SEC33 which implies I was correct about the purpose of a standalone
This is fish (with my patch):
This is bash:
The entire point of my habit is to hard kill a badly behaving process that responds to
OK, so this patch which leads to
It sounds like @lunixbochs is opposed to entirely removing the expansion of
The documentation is now less incorrect than it was - the current text reads