This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: login differs between cygwin and cygwin/X
- From: Alder <PGDEHMKOKIMD at spammotel dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Mon, 31 May 2004 18:40:05 -0700
- Subject: Re: login differs between cygwin and cygwin/X
- References: <c9ap7j$t9t$1@sea.gmane.org> <Pine.GSO.4.58.0405311833570.613@slinky.cs.nyu.edu>
- Reply-to: cygwin-xfree at cygwin dot com
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