Re: xterms disappear when non-existent command given in background
Re: xterms disappear when non-existent command given in background
- Subject: Re: xterms disappear when non-existent command given in background
- From: Martin Costabel <email@hidden>
- Date: Sat, 10 Jan 2004 21:03:31 +0100
Justin Walker wrote:
On Saturday, January 10, 2004, at 10:15 AM, RCohen wrote:
I've noticed that Apple X11 has a peculiar and annoying behavior which
is not characteristic of other implementations of X windows.
If, in an xterm, I type a command that does not exist, followed by
an ampersand to run it in the background [ example: fggggg &]
then what happens is that the xterm disappears, rather than giving
me the proper message that the command does not exist.
Odd: I don't see this on 10.2.8 or on 10.3. What shell are you using?
In my case, it's 'bash'.
FWIW, it's likely got zilch to do with X11. The termination of a shell,
which is probably why the window disappears, is generally because of
'eof' indications.
This is an old problem of OSX's tcsh to commit suicide whenever a
background process dies. It used to nuke Terminal.app windows, too.
However, it doesn't do the latter any more on Panther. It still does it
in xterms or rxvts, so it does have something to do with X11, although I
have no idea what.
Try the following, even from bash:
1. Start a new tcsh
2. At the prompt, type asdfasdfasdf&
If you are in a Terminal.app window, it says (besides command not found)
something about Exit 1, but it stays in tcsh. If you are in xterm, it
exits tcsh.
Weird.
--
Martin
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.