Hacker News new | past | comments | ask | show | jobs | submit login

  "Previously, a single % would pid-expand to either all 
   backgrounded jobs, or all jobs owned by your user. Now it 
   expands to the last job backgrounded. If no job is in the 
   background, it will fail to expand. In particular, fg % 
   can be used to put the most recent background job in the 
   foreground."
oh! Can fish background tasks now? I haven't being following very closely, I really should update my shell.



The major change here is that `kill -9 %` with no backgrounded tasks would kill all of your processes (before Fish 2.1).

There's now a guarantee that `%` expands to either the last process backgrounded or an error.


It was always possible to background processes in fish. You may be confusing it with not able to background functions (https://github.com/fish-shell/fish-shell/issues/238). We are yet to fix that bug.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: