Red Hat Bugzilla – Bug 89856
stty erase yields errors on dumb terminal
Last modified: 2007-04-18 12:53:22 EDT
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):
Steps to Reproduce:
1. Run "TERM=dumb zsh". That is, launch zsh with $TERM set to "dumb".
Diagnostic messages appear:
stty: missing argument to `erase'
Try `stty --help' for more information.
Silent startup with no error messages.
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`"
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.