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 the config file, which may or may not be supported, but > still uses the same basic format. Example of files that don't use the > same basic format: > fstab - uses tabular representation.
But also note: /etc/hosts: also provides 'value key' lookups. > bind - uses a C style syntax. C-style syntax is an implementation. It requires a hirarchy. Does the order matter inside each element? And there is one type of config files which there's probably no point in emulating: programs with a good set of commands have an 'rc' configuration file: The configuration file is a set of commands to the program itself. No point in trying to emulate bashrc, vimrc or muttrc. -- Tzafrir Cohen | New signature for new address and | VIM is http://tzafrir.org.il | new homepage | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | Space reserved for other protocols | friend ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
