In zsh, what’s the difference between &! and &|

background-processzsh

In my adventures with disown, I also discovered that in zsh, program &! starts and immediately backgrounds and disowns the program, so you can close the shell without the program getting a SIGHUP.

Other online sources said &| does this. My crude tests found no difference.

How do &! and &| differ?

Best Answer

Turns out they really are equivalent, according to man zshbuiltins (section "disown"): simply syntactic alternatives for the same operation.

Anticlimactic…

Related Question