Help understanding evaluation order

I have made a simple script to find all programs that use a tcp wrapper, it will supply a reasonable default for my system if none is given.

After some digging I realized that the expansion operators pass their default return value single quoted (according to bash -x trace). I have wildcard expansions in my return value, and it works if used with eval.

Its working perfect with eval, but I don't know why.

So please upload your entire script (wrapped in forum CODE tags) if you want help.

We are very talented here at unix.com; but reading minds and the work of other people "at an unseen distance" which we cannot imagine is not in our many skill sets.

:slight_smile:

thanks !