[Pkg-jed-devel] error building jed_0.99.16.pre.0.99.17.84-1

Jörg Sommer joerg@alea.gnuu.de
Sat, 16 Apr 2005 12:40:46 +0200


--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

G. Milde schrieb am Sat 16. Apr, 10:32 (+0200) :
> On 15.04.05, Rafael Laboissiere wrote:
> > * G. Milde <g.milde@web.de> [2005-04-15 15:23]:
> >=20
> > > Maybe we could look at __argv. site.sl tells us:
> > >=20
> > >    % if first argument is -n then do NOT load init file
> > >=20
> > >=20
> > > if (__argv[1] !=3D "-n")
> > > {
> > >    $1 =3D listdir ("/etc/jed-init.d");
> > >    foreach ($1[array_sort($1)])
> > >      ...
> > >=20
> > > For me this seems more clean than a new environment variable.
> > > (I should consider this for home-lib.sl too.)
> >=20
> > This looks indeed much cleaner than the envvar approach.  I see that J=
=F6rg has=20
> > already committed a change based on NO_JED_CONF.  J=F6rg, could you con=
sider
> > implementing the solution above instead?
>=20
> Before implementing, some considerations should be made:
>=20
> * Shall we use "-n" (and expand its meaning) or "invent" a new command li=
ne
>   option?

New.

>   In any case, we do some addition to the documented standard interface
>   of jed.
>  =20
>   - some users might want to switch of the parsing of the .jedrc
>     file, not the Debian setup. Expanding "-n" prevents this.
>    =20
>   - 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.

This is the same with all commandline options. Edit a file named -n or
delete a file names -rf with rm.

The solution for this problem exists a long while: jed ./--no-conf or
better Posix comform behaiour: jed -- --no-conf (stop interpeting command
line options at -- >> rm -- -rf)

>     We would have to add some hook to close the empty buffer in this
>     case.

I think a option like this, is also interessting to John.

> * Shall we look for "-n" (or our replacement) only at the first position,=
 or
>   browse the whole array with

browse the whole array.

>   if (length(where(__argv =3D=3D "-n")))
>  =20
>    =20
>=20
> I would vote for a new option on any position.

seconded.

> For the name, I'd prefer some gnu style long option.

seconded.

J=F6rg.

--=20
Der Hase l=E4uft schneller als der Fuchs,
denn der Hase l=E4uft um sein Leben.

--FL5UXtIhxfXey3p5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iQEVAwUBQmDrroZ13Cz2nwVYAQJxQAf/fUTIuLComWJ0Vq37gsNA5ryLf4SqtLqf
brOb56l96UL9cHcrGcK/1poFUBSlb8X7DttAIxAKb2jKPFj+d0SYuhXtUc7XR3ZO
ZaenChdnvd4QatxotMc9fMdKoONBP8k95Uw5CpYb7X5KZ0pGO9D9HfjJbbsrPzNe
QBVvtE0V4DT1au5hlAJpIIzM/fC7oRpccH9oGbt4HJryscHIIcH49r9TkWloI3W4
wcUw0oJbP5g2sAxzFvdmAKyqbF/61HRbajxIu3VlCb7OIVJKWbb9E9wV21Audn9s
6P/PuGMZ/TpJe5mEW10b9YmFgS9axoQ4ie9+6nioMNUVUT3E3iaVWA==
=7ltQ
-----END PGP SIGNATURE-----

--FL5UXtIhxfXey3p5--