Skip to Content.
Sympa Menu

sm-commit - Re: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (b8022b35580d12123db37612a833022342e6226a)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Eric Sandall <eric AT sandall.us>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: Re: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (b8022b35580d12123db37612a833022342e6226a)
  • Date: Fri, 2 Feb 2007 13:51:00 -0800

On Friday 02 February 2007 10:31:30 Jaka Kranjc wrote:
> > I don't think this will work as you intend. The first editor installed
> > will put in /etc/profile.d/editor.sh, and then none of the others will
> > install one as that file will exist (correct?).
>
> correct, imho this is wanted behaviour, a user will probably have more than
> one editor installed.

Correct, but the first editor installed (possibly nano or ed (see below) as
they're most likely already installed) would be their default forever (well,
without user intervention).

> > If they do overwrite
> > the prior editor.sh, then the prior spell will now be broken for
> > cleanse.
>
> Will it? I gave it a brief thought and just assumed that it will see the
> file is modified and assume it is from the SA. How could it be ammended?

It wouldn't be modified by the SA if its used as intended: cast the editor
you
want, and it'll be default. It'll only be marked as modified if the user
modfies /etc/profile.d/editors.sh after the spell that installed it is cast.
If they don't modify the file installed by, say, ed, and then install vim,
install_config_file will (I believe) see that editors.sh already exists and
leave it alone, or that it differs from the file about to be installed, and
also won't install the new file.

> > Another fun thing is that (almost) everyone will have tetex
> > installed (for documention, if not TeX itself), which depends on ed.
>
> I don't get this part - how is it relevant?

Well, if the other statements are true, then everyone would either always
have
ed as their default editor (if editors.sh is always overwritten) or they're
editor would always be the last editor cast.

A good way might be to actually test this rather than trust my meanderings
above. ;)

-sandalle

--
Eric Sandall | Source Mage GNU/Linux Developer
eric at sandall.us PGP: 0xA8EFDD61 | http://www.sourcemage.org/
http://eric.sandall.us/ | http://counter.li.org/ #196285

Attachment: pgpL5GsKOIOqT.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page