This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 <michael@endbracket.net>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]