[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in /etc/profile.d/lilypond.sh (with fix!)

From: Reuben Thomas
Subject: Re: Bug in /etc/profile.d/lilypond.sh (with fix!)
Date: Wed, 3 Dec 2003 12:18:43 +0100 (CET)

> With your patch, the script will not work for people who already
> have the TEXMF variable set for other reasons.

It will and it does! That's the whole point of the patch. When my code
is run in a shell that already has TEXMF set, it checks whether the
Lilypond path is in it, and only adds it if it isn't.

> I cannot see that the current solution is any major problem,
> since it should not occur very often that people start so many shells
> inside each other that the variable length breaks any limits.

That's not the only potential problem. It also changes the search order so
that Lilypond's files come first. What if I want to override them?
I set all my environment variables in .bash_profile, so they don't get
reset in every shell. But to override Lilypond's files, I'd have to set
TEXMF in .bashrc or something.

And "people" may not start many nested shells, but scripts may well.
Anyway, it's just plain ugly adding the same path repeatedly.

> It will still work even if the same path happens to occur several
> times.

I will indeed still work, but, for example, when I run texhash, it tries
to update the lilypond ls-R multiple times.

http://www.mupsych.org/~rrt/ | mediate, v.i.  to butt in (Bierce)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]