Find the answer to your Linux question:
Results 1 to 5 of 5
This is something that's been niggling me for quite a while and I wondered if anyone else knows the answer. xterms don't normally repeat commands but the exit command is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,234

    Why does xterm always echo the "exit" command before shutting down?


    This is something that's been niggling me for quite a while and I wondered if anyone else knows the answer. xterms don't normally repeat commands but the exit command is always printed out on a line by itself (with no prompt) just before the window closes.

    I grepped the source code to see if there was an actual instruction to print "exit" as a goodbye message but there isn't. So why does this happen and what is its purpose?
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,655
    Sorry Hazel, but my system shuts down the xterms so fast that if they are echoing the string, I can't see it. And yes, I did try with a real xterm, and not a KDE or Gnome console/terminal window.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    I use xterm always and never knew it did that. I can't see it either but that's interesting.
    Linux Mint + IceWM Registered: #371367 New Members: click here

  4. $spacer_open
    $spacer_close
  5. #4
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    It happens on my system too.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  6. #5
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,234
    Quote Originally Posted by Rubberman View Post
    Sorry Hazel, but my system shuts down the xterms so fast that if they are echoing the string, I can't see it. And yes, I did try with a real xterm, and not a KDE or Gnome console/terminal window.
    Try using the xterm command with the -hold option. This leaves the window open after exit and lets you see more clearly.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •