Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16916 - etc-update incompatable with xterm
Summary: etc-update incompatable with xterm
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-05 15:08 UTC by Arthur Britto
Modified: 2011-10-30 22:22 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Britto 2003-03-05 15:08:48 UTC
etc-update does not currently use a pager when displaying diff output.  As a
result, Output to xterm is not filtered.  Unicode files often cause (1) xterm to
send back characters to the script causing termination on input and (2) cause
xterm to go into odd modes.

Apparently, the use of the ${pager} is commented out.

You can see xterm (from xfree 4.2.1-r2) exhbit this problem:
cat /etc/X11/starthere/sysconfig.desktop

Extraneous characters appear at the end of the file and attempting to vi the
file will produce strange results.

A full terminal reset clears the problem.

I was able to work around this by using gnome-terminal.

Reproducible: Always
Steps to Reproduce:

Actual Results:  
Pager not used for diff output.

Expected Results:  
Pager should have been used.
Comment 1 Andrew Cooks (RETIRED) gentoo-dev 2003-11-29 14:35:10 UTC
This bug has been inactive for more than 180 days.

I have been unable to reproduce this problem.

Please reopen if the problem persists.
Comment 2 Arthur Britto 2003-11-29 19:47:24 UTC
Reopening, the problem still happens.

In an xterm I did the following:
cd /etc/X11/starthere/
cp -p sysconfig.desktop ._cfg0001_sysconfig.desktop
vi ._cfg0001_sysconfig.desktop
  # Removed some lines with non-ascii characters.
etc-update
  # View diffs for sysconfig.desktop
  # Prompt came back as:
Please select from the menu above (-1 to ignore this update): ^[[?1;2c
  # The characters after the ':' are bogus.
  # Choose option 2, Delete update.  Got this error:
/usr/sbin/etc-update: line 253: read: 2: syntax error: operand expected (error token is "2")

Comment 3 Philippe Lafoucrière 2004-06-10 12:52:25 UTC
same as bug #53547
Comment 4 Jukka Alasalmi 2004-07-24 03:46:46 UTC
Tried with xterm-192 and still reproducible. However for me, no bogus characters appear (i.e., the prompt looks completely normal), and it makes the problem hard to track when not knowing about this problem.

A workaround for this is to blindly backspace for as long as the characters keep disappearing and then enter the command (for me this clears part of the correct prompt, but don't know what happens when bogus characters are displayed).
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-14 11:20:13 UTC
What's the latest word on this bug?
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-15 04:19:06 UTC
Closing this bug due to inactivity for almost a year.  Please reopen if this issue persists.