Originally Posted by jpollard
The entire thing gets simpler with Perl... as you are under control of how variables get used at each step.
At one time I used a perl script to interpret a network configuration file... and made the configuration file executable, using a "#!/etc/network.p" in the configuration file to invoke the Perl script.
Much easier than trying to get bash to do it - and it shortened the configuration file.
In my case configuration file analysis is done by some awk script which outputs options for pppd. Then pppd is executed with fixed options + options read by awk script. I tried to combine fixed options and from configuration file with awk but I realized that this is user arguments analysis - I don't want to do that.
Anyway thank You for the answer