Re: starting xterm from tcsh, gives error message: missing }.

2005-04-15 Thread Michael Wardle
On Fri, 2005-04-15 at 19:21 -0500, Bengt Svensson wrote:
 I am using tcsh in cygwin and every time I start a new xterm from an existing 
 xterm/tcsh window I get the error message 'missing }.'
 I recently updated my cygwin so everything should be current. But see 
 attached 
 cygcheck -s -v -r output.

You haven't given enough context in that script to determine why that
line was problematic and I don't have a Cygwin install in front of me,
so I can't check.

To me that line looks fine as it was, however the purpose of the eval
was not obvious.  I think that statement would be better without the
eval at all.

I notice that one directory in your PATH contains a space (c:\Program
Files\Common Files\MDL Shared\ISIS).  If you examine your output from
cygcheck you will see that something weird is happening.

My guess is that at least one script in profile.d isn't handling
directories with spaces properly.  They really should be rewritten to
use the $path variable instead ($path is an array, $PATH is a scalar) or
to explicitly set IFS and use proper quoting.

-- 
Michael Wardle [EMAIL PROTECTED]



Re: fixing XTerm colors

2005-03-26 Thread Michael Wardle
Alexander Gottwald wrote:
On Thu, 24 Mar 2005, Michael Wardle wrote:
It seems that startx starts an XTerm with a yellow foreground and a 
black background, but subsequent invocations of XTerm will use the 
user's settings.
[...]
So there are basicly two solutions: 

- remove the options and start xterm the way it is supposed to
I would like to see this happen.
--
Michael


fixing XTerm colors

2005-03-23 Thread Michael Wardle
Hi
It seems that startx starts an XTerm with a yellow foreground and a 
black background, but subsequent invocations of XTerm will use the 
user's settings.

To me this presents two problems:
- subsequent XTerms look different from the initial one
- user's settings are disrespected by the initial one
The way I think this problem can be solved is:
1. specify the default Cygwin colors etc in the X resources file
   /etc/X11/xinit/.Xresources
2. remove the customizations from
   /etc/X11/xinit/xinitrc
To resources corresponding to the command line parameters seen in 
xinitrc are:
xterm*saveLines: 1000
xterm*rightScrollBar: true
xterm*pointerColor: red
xterm*foreground: yellow
xterm*background: black

You would just add these lines to /etc/X11/xinit/.Xresources and invoke 
xterm as:
exec xterm

or (if the bash -l is absolutely necessary):
exec xterm -e /bin/bash -l
instead of:
exec xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e 
/usr/bin/bash -l

There is a more comprehensive list of options and their corresponding 
resources in the xterm(1) manual page.

The user can then set his/her own preferences in ~/.Xresources (as I 
intend to, as I am quite happy with black on white).

I hope a future release of Cygwin/X will include these changes.
Thanks