Bug 89856 - stty erase yields errors on dumb terminal
Summary: stty erase yields errors on dumb terminal
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: zsh
Version: GinGin64
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-04-28 22:29 UTC by Ben Liblit
Modified: 2007-04-18 16:53 UTC (History)
0 users

Fixed In Version: 4.0.6-7
Clone Of:
Environment:
Last Closed: 2003-06-19 20:52:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Ben Liblit 2003-04-28 22:29:12 UTC
Description of problem:

When a zsh shell is started on a dumb terminal, error diagnostics appear stating
that stty is missing an argument to "erase".

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

zsh-4.0.6-5

How reproducible:

Consistently.

Steps to Reproduce:
1. Run "TERM=dumb zsh".  That is, launch zsh with $TERM set to "dumb".
    
Actual results:

Diagnostic messages appear:

   stty: missing argument to `erase'
   Try `stty --help' for more information.

Expected results:

Silent startup with no error messages.

Additional info:

The problem is on the last line of "/etc/zshrc", which reads:

   stty erase `tput kbs`

On a dumb terminal, the tput command exits with an error and produces no output,
effectively reducing this to "stty erase" with no second argument.

This can be fixed quite easily by putting double quotes around the backtick clause:

   stty erase "`tput kbs`"

Comment 1 Jens Petersen 2003-05-01 01:26:17 UTC
Thank you for the report. I'll fix this in the next build into rawhide.

The fixed package should be zsh-4.0.6-7.


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