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

Re: editorrc as update-alternatives slave



Raphael Hertzog dixit:

>Yes you can. 

Thanks!

>(But it's a bit weird that those editors do not use their canonical name
>to find their configuration file and instead rely on argv[0]...)

The idea is: you get one binary, /usr/bin/joe in the joe package
(similar for jupp), and some symlinks /usr/bin/{jmacs,jstar,jpico,...}
to it. The binary then looks at its called name to determine which
of the /etc/joe/*rc files to load.

>When an alternative doesn't provide a slave, u-a drops the symlink (i.e.
>it will not be dangling).

OK. Will do it like that, then.

bye,
//mirabilos
-- 
Sometimes they [people] care too much: pretty printers [and syntax highligh-
ting, d.A.] mechanically produce pretty output that accentuates irrelevant
detail in the program, which is as sensible as putting all the prepositions
in English text in bold font.	-- Rob Pike in "Notes on Programming in C"


Reply to: