Keith Thompson <ks...@mib.org> writes: > "Illia Bobyr" <illia.bo...@ronin-capital.com> writes: > [...] >> When I do "gitk &" upon gitk exit the parent bash process >> terminates as well. >> When I do "(gitk &)" it works fine. There does not seem to be any >> crash dumps. But sometimes bash outputs "Logout" before it exits just >> as if I would press ^D on prompt. I have tried putting "gitk &" call >> into a script and adding traps for all possible signals but none seemed >> to be fired. >> You do not have to be in a directory that is a Git repository. > > I wonder how "set -o ignoreeof" in the parent shell would affect > the behavior.
I don't see this behavior, either with or without "set -o ignoreeof". I see a pop-up error message: "Cannot find a git repository here"; when I click "OK" the message vanishes, gitk terminates, and the parent bash shell is undisturbed. Same thing whether bash is running under rxvt, xterm, or a Windows command window. $ cygcheck -c -d cygwin gitk bash Cygwin Package Information Package Version bash 3.2.49-23 cygwin 1.7.5-1 gitk 1.7.0.4-2 -- Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst> Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"