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: login differs between cygwin and cygwin/X


On Mon, 31 May 2004, Alder wrote:

> Igor Pechtchanski wrote::
> > On Sat, 29 May 2004, Alder wrote:
> >
> > You need to pass the "--login" option to the bash shell started by the
> > xterm, either by changing the "xterm" invocation to "xterm -e bash --login
> > -i" or by passing the "-ls" option to xterm.
> >     Igor
>
> Thanks, Igor.
>
> I wish it were as simple as you suggest, but the STARTXWIN.BAT already
> starts XTERM as a login shell with the following command:
>
> run xterm ... bash -l
>
> Just to be thorough, I tried changing the "-l" flag to "--login -i" and
> "--login", but the same message appears.
>
> After some further digging around, I've isolated the problem to a
> specific line of the "/etc/profile.d/lilypond-profile.sh" script run by
> /etc/profile.  Near the end of that script is a section which sets the
> TEXMF environment variable:
>
> ...
> # Add the installation directory to the teTeX system tree,
> # see Documentation/misc/fontinstallation
> if [ -z `echo $TEXMF | grep "$datadir"` ]; then
>      TEXMF="{$datadir,"`kpsexpand  \\$TEXMF`"}"
>      export TEXMF
> fi
> ...
>
> If I then add some judicious "echo $TEXMF" statements before and after
> the line containing "kpexpand", it reveals that TEXMF is empty before
> that line, and receives the following value after the error is generated:
>
>         {/usr/share/lilypond/2.2.0,/usr/share/texmf}
>
> This is exactly the same value as TEXMF receives when I am not using the
> X server, so it's more an annoyance than a problem, I suppose.  Still,
> it would be interesting to get to the cause of it.
>
> Regards,
> Alder

Does your cygwin.bat file do anything special (i.e., change the path, or
set the CYGWIN variable)?  That might explain the difference, as the X
invocation doesn't go through cygwin.bat...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


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