aamir
aamir

Reputation: 4043

Is behaviour of putting & after command is shell specific?

I have observed in zsh if I run a command like,

some_command &

and close the terminal, it would kill the process started by some_command.

While it doesn't happen with bash.

So, I'm curious if the behaviour of putting "&" after command is shell specific?

Upvotes: 1

Views: 73

Answers (1)

mpez0
mpez0

Reputation: 2883

Yes, the exact specifics on background vs detach from controlling terminal vs process group, etc are shell-specific. You should look up the nohup command for some additional detail.

Upvotes: 1

Related Questions