Bug 130517 - top -bn1 no longer ignores $TERM
top -bn1 no longer ignores $TERM
Product: Fedora
Classification: Fedora
Component: procps (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Karel Zak
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2004-08-20 19:04 EDT by Jamie Zawinski
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-06-27 11:07:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jamie Zawinski 2004-08-20 19:04:34 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2)

Description of problem:
"top -bn1" should produce plain-text output and exit.  It does not
address the screen, and so should not consult $TERM.  In 2.0.11, it
did not, but in 3.2.0 it does.

With procps-2.0.11-6 on Red Hat 9:

     % setenv TERM no-such-terminal-type
     % top -bn1 | head

With procps-3.2.0-1.1 on Fedora Core 2:

     % setenv TERM no-such-terminal-type
     % top -bn1 | head
     'no-such-terminal-type': unknown terminal type.

     % setenv TERM dumb
     % top -bn1 | head

So, even though top does not make use of the terminal entry, it
insists on there being one anyway.

This is a problem because Emacs *shell* buffers set $TERM to "emacs",
which has no termcap entry, so when I do top-ish grep-ish things in
Emacs, I have to screw around with $TERM to make it work.

Version-Release number of selected component (if applicable):

How reproducible:

Expected Results:
"top -bn1" should work the same regardless of the $TERM setting.
Comment 1 Daniel Walsh 2004-08-30 16:04:19 EDT
Fixed in procps-3.2.3-3

Note You need to log in before you can comment on or make changes to this bug.