Re: I must be missing something

2005-03-26 Thread Shlomi Loubaton
hi Did any of you read the documentation of Elektra ? http://elektra.sourceforge.net/ If you ask me , Elektra is not even remotely similar to MS's Registry. It's only an API to manage little (human-readable) text files. (I even sent a patch once to make text files more readable - to prepend #

Re: I must be missing something

2005-03-25 Thread Shaul Karl
On Fri, Mar 25, 2005 at 07:14:15AM +0200, Shachar Shemesh wrote: > Shaul Karl wrote: > > > Don't you want a parser for a simple language? libc? lex+bison? > > > > > libc? What does it have to do with anything? If all you want is get(PermitRootLogin) and you are willing to deal with fscanf has

Re: I must be missing something

2005-03-25 Thread Tzafrir Cohen
On Wed, Mar 23, 2005 at 11:28:45PM +0200, Shachar Shemesh wrote: > Obviously, that would only apply to a certain format of file. Most > files, however, use a "key value" or "key=value" format, with minor > variants. Answering Nadav's question - yes, even sendmail and apache. > Apache segments t

Re: I must be missing something

2005-03-25 Thread Tzafrir Cohen
On Wed, Mar 23, 2005 at 11:35:04PM +0200, Nadav Har'El wrote: > On Wed, Mar 23, 2005, Yedidyah Bar-David wrote about "Re: I must be missing > something": > > > Does this standard library exists on other OSs? > > > > As was already mentioned, the Win

Re: I must be missing something

2005-03-24 Thread Shachar Shemesh
Shaul Karl wrote: Don't you want a parser for a simple language? libc? lex+bison? libc? What does it have to do with anything? lex+bison are great. Really. However, they seem way too complex for such a purpose. All I want is a standard library that will do the work for me. Using lex+bison inc

Re: I must be missing something

2005-03-24 Thread Shaul Karl
On Wed, Mar 23, 2005 at 11:28:45PM +0200, Shachar Shemesh wrote: > > > > Not sure I understand what you are after. Suppose there would have > >been # include . What API would you expect to > >find in it? > > > The most basic API is "get me the value this key has". So that if I have > "PermiteRootL

Re: I must be missing something

2005-03-23 Thread Amit Aronovitch
Shachar Shemesh wrote: Just about every free program on Linux keeps a configuration file in /etc. They all fairly much carry the same format. It simply defies logic that there would be no standard library to read this configuration file in. "The nice thing about standards is that there a

Configuration files (was: Re: I must be missing something)

2005-03-23 Thread Omer Zak
On Wed, 2005-03-23 at 23:28 +0200, Shachar Shemesh wrote: > Shaul Karl wrote: > > >On Wed, Mar 23, 2005 at 07:46:24PM +0200, Shachar Shemesh wrote: > > > > > >>There is no other explanation. > >> > >>Just about every free program on Linux keeps a configuration file in > >>/etc. They all fairly

Re: I must be missing something

2005-03-23 Thread Shachar Shemesh
Nadav Har'El wrote: One major difference in philosophy between the Windows registry and the Unix /etc is that the former was never ever meant to be manually read or modified by users, and the latter was mainly intended for manual modification. Don't get me wrong. Not for one second. I will not t

Re: I must be missing something

2005-03-23 Thread Nadav Har'El
On Wed, Mar 23, 2005, Yedidyah Bar-David wrote about "Re: I must be missing something": > > Does this standard library exists on other OSs? > > As was already mentioned, the Windows Registry. > As far as I know, there are few such attempts also in various Unices. &

Re: I must be missing something

2005-03-23 Thread Shachar Shemesh
Shaul Karl wrote: On Wed, Mar 23, 2005 at 07:46:24PM +0200, Shachar Shemesh wrote: There is no other explanation. Just about every free program on Linux keeps a configuration file in /etc. They all fairly much carry the same format. It simply defies logic that there would be no standard librar

Re: I must be missing something

2005-03-23 Thread Yedidyah Bar-David
On Wed, Mar 23, 2005 at 09:09:01PM +0200, Shaul Karl wrote: > On Wed, Mar 23, 2005 at 07:46:24PM +0200, Shachar Shemesh wrote: > > There is no other explanation. > > > > Just about every free program on Linux keeps a configuration file in > > /etc. They all fairly much carry the same format. It s

Re: I must be missing something

2005-03-23 Thread Shaul Karl
On Wed, Mar 23, 2005 at 07:46:24PM +0200, Shachar Shemesh wrote: > There is no other explanation. > > Just about every free program on Linux keeps a configuration file in > /etc. They all fairly much carry the same format. It simply defies > logic that there would be no standard library to read

Re: I must be missing something

2005-03-23 Thread Nadav Har'El
On Wed, Mar 23, 2005, Shachar Shemesh wrote about "I must be missing something": > There is no other explanation. > > Just about every free program on Linux keeps a configuration file in > /etc. They all fairly much carry the same format. It simply defies logic > that t

Re: I must be missing something

2005-03-23 Thread Diego Iastrubni
Shachar Shemesh wrote: There is no other explanation. Just about every free program on Linux keeps a configuration file in /etc. They all fairly much carry the same format. It simply defies logic that there would be no standard library to read this configuration file in. Anyone? Shacha

I must be missing something

2005-03-23 Thread Shachar Shemesh
There is no other explanation. Just about every free program on Linux keeps a configuration file in /etc. They all fairly much carry the same format. It simply defies logic that there would be no standard library to read this configuration file in. Anyone? Shachar -- Shachar Shemesh Lin