7

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?

9

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

Anticlimactic…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.