[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#268890: infinite recursion when x-terminal-emulator -> uxterm

On Sun, Aug 29, 2004 at 06:14:23PM +0100, Chris Boyle wrote:
> Package: xterm
> Version: 4.3.0.dfsg.1-6
> Severity: important
> Line 5 of /usr/X11R6/bin/uxterm is:
> program=xterm
> If the x-terminal-emulator alternative is pointed at uxterm, then
> launching just "xterm" runs uxterm again (since /usr/bin/xterm ->
> /etc/alternatives/x-terminal-emulator), recursing infinitely. Better
> would be:
> program=/usr/X11R6/bin/xterm

If your system is in that state, then you put it into it yourself:

rei $ ls -l /usr/bin/xterm
ls: /usr/bin/xterm: No such file or directory

rei $ ls -l /usr/bin/X11/xterm
-rwxr-sr-x  1 root utmp 259448 2004-07-07 08:07 /usr/bin/X11/xterm*

rei $ ls -l /etc/alternatives/x-terminal-emulator
lrwxr-xr-x  1 root root 21 2004-07-10 21:40 /etc/alternatives/x-terminal-emulator -> /usr/X11R6/bin/uxterm*

rei $ sudo update-alternatives --display x-terminal-emulator
x-terminal-emulator - status is auto.
 link currently points to /usr/X11R6/bin/uxterm
/usr/bin/Eterm - priority 10
 slave x-terminal-emulator.1.gz: /usr/share/man/man1/Eterm.1.gz
/usr/X11R6/bin/uxterm - priority 30
 slave x-terminal-emulator.1.gz: /usr/X11R6/man/man1/uxterm.1x.gz
/usr/X11R6/bin/xterm - priority 20
 slave x-terminal-emulator.1.gz: /usr/X11R6/man/man1/xterm.1x.gz
/usr/bin/aterm-xterm - priority 20
 slave x-terminal-emulator.1.gz: /usr/share/man/man1/aterm.1.gz
Current `best' version is /usr/X11R6/bin/uxterm.

rei $ grep xterm /usr/bin/X11/uxterm
# $XFree86: xc/programs/xterm/uxterm,v 1.8 2004/03/04 02:21:56 dickey Exp $
# wrapper script to setup xterm with UTF-8 locale
# Check environment variables that xterm does, in the same order:
#test -f ./xterm && program=./xterm
exec $program -class UXTerm -title 'uxterm' -u8 "$@"

So... where'd the /usr/bin/xterm binary come from?

 Marc Wilson |     Oh don't the days seem lank and long When all goes
 msw@cox.net |     right and none goes wrong, And isn't your life
             |     extremely flat With nothing whatever to grumble at!

Reply to: