diff --git a/sample.conf b/sample.conf new file mode 100644 index 0000000..0f90cb3 --- /dev/null +++ b/sample.conf @@ -0,0 +1,52 @@ +# -*-config-general-*- + +var1 = zero # comment + +/* +multiline +comment +*/ + +# continuation line +line = a\ + long line + +# vars with or without interpolation +var3 = blah +set = $var3 +ignore = \$set +quote = this should be 'kept: $set' +notquote= "this should be interpolated: $var3" +host = gw.intx.foo +cmd = mart@${host}:22 +onflag = yes +offflag = No + +# quoting +say = "hello ${host}" +saynot = 'good bye $host' + +# classic include with glob +<> + +# apache include +include complex/empty.cfg + +# a block + + blubb = nix + + +# a named block + + age = 3 + height = 45 + # a here-doc with indentation + birth =< + +# an array (unless -MergeDuplicates is true) +lines = hello +lines = world # will become: 'lines' => ['hello', 'world']