On Sat, Jul 16, 2005 at 01:20:15AM +0200, Dan Jacobson wrote: > Package: xterm > Version: 4.3.0.dfsg.1-13 > Severity: normal > File: /usr/X11R6/bin/uxterm > > Very interesting. > $ sh -x /usr/bin/X11/uxterm > gets me a uxterm, whereas > $ sh /usr/bin/X11/uxterm > just gets me error messages. > Adding -x changing the outcome of scripts? Uh oh.
As we see, it does.
> Indeed, if I change the top line to #!/bin/sh -x
> then it works if I call it directly.
>
> Add a comment to the source to say what this does:
> locale=`(LC_ALL=C LC_CTYPE=C LANG=C locale >/dev/null) 2>&1`
> and how it is different than
> locale=
> and why the ().
I suppose that might help. My rcs log says I added that line to check
if there is a working locale program. It is only interested in seeing
if there is something written to stderr. Now that I'm thinking about
it, something like this is what I should have done:
locale=`sh -c "LC_ALL=C LC_CTYPE=C LANG=C locale >/dev/null" 2>&1`
> Well, at least it enabled me to get a perfectly good uxterm, as I see
...
> $ locale -a
> C
> POSIX
> zh_TW
> zh_TW.big5
Since you have no UTF-8 locale installed, it is not a "perfectly good"
uxterm.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
pgpCIm8GsFAqB.pgp
Description: PGP signature

