[Pkg-jed-devel] error building jed_0.99.16.pre.0.99.17.84-1
G. Milde
g.milde@web.de
Sat, 16 Apr 2005 10:32:29 +0200
On 15.04.05, Rafael Laboissiere wrote:
> * G. Milde <g.milde@web.de> [2005-04-15 15:23]:
>
> > Maybe we could look at __argv. site.sl tells us:
> >
> > % if first argument is -n then do NOT load init file
> >
> >
> > if (__argv[1] != "-n")
> > {
> > $1 = listdir ("/etc/jed-init.d");
> > foreach ($1[array_sort($1)])
> > ...
> >
> > For me this seems more clean than a new environment variable.
> > (I should consider this for home-lib.sl too.)
>
> This looks indeed much cleaner than the envvar approach. I see that Jörg has
> already committed a change based on NO_JED_CONF. Jörg, could you consider
> implementing the solution above instead?
Before implementing, some considerations should be made:
* Shall we use "-n" (and expand its meaning) or "invent" a new command line
option?
In any case, we do some addition to the documented standard interface
of jed.
- some users might want to switch of the parsing of the .jedrc
file, not the Debian setup. Expanding "-n" prevents this.
- a new command line option, say "--no-conf" would be interpreted as
a filename by jed. However, the chance someone wants to edit a file
"--no-conf" (or some even more specific name) is small.
We would have to add some hook to close the empty buffer in this
case.
* Shall we look for "-n" (or our replacement) only at the first position, or
browse the whole array with
if (length(where(__argv == "-n")))
I would vote for a new option on any position.
For the name, I'd prefer some gnu style long option.
Günter
--
G.Milde web.de