There is some major problems with this approach, even if it would be 
really nice if it worked...
a) Most pre-processors do not like to be called as "shell scripts". 
This is a quite special calling convention.. m4 in particular does 
not like this.
b) not portable outside Unix.
Regards
Henrik
On Wednesday 03 April 2002 16:00, Andres Kroonmaa wrote:
>  When I saw this proposal, my immediate thought was why not try to
>  parse first line of the config file and look for #!/usr/bin/xxx
>  there. Or even simply add substitute option to -f that instructs
>  squid to "try" to execute (popen) the config file itself. This way
>  it should be possible to easily pass arguments and pick
> preprocessor inside the config file itself.
>
>  eg:
>    squid -x /etc/squid.conf
>
> more /etc/squid.conf
> #!/usr/bin/m4 -E -s
> ...
>
>  Executable config file this way can show you right away exact same
>  final config that would be parsed by squid, expanding all
> scripting, if you test that on a command line.
>
>
> ------------------------------------
>  Andres Kroonmaa <andre@online.ee>
>  CTO, Microlink Online
>  Tel: 6501 731, Fax: 6501 725
>  Pärnu mnt. 158, Tallinn,
>  11317 Estonia
Received on Wed Apr 03 2002 - 17:32:37 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:57 MST