Ticket #2027 (closed bug: fixed)
ghc -e sometimes spills control characters into its output
| Reported by: | int-e | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.8.3 |
| Component: | GHCi | Version: | 6.8.2 |
| Keywords: | Cc: | ||
| Operating System: | Linux | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Easy (less than 1 hour) | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
The behaviour depends on the TERM variable. For example,
# TERM=xterm ghc -e 'return ()' | od -a 0000000 esc [ ? 1 0 3 4 h 0000010
Workaround: unset the TERM variable.
Analysis: Those control characters are emitted by libreadline on initialisation. They enable the terminal's meta mode.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

