[Resolvconf-devel] Question about dnscache script

Thomas Hood jdthood at gmail.com
Wed Jan 9 08:33:12 UTC 2008


Thomas Hood wrote:
> [...] this line in the dnscache script
> 
> 	for SVC in $(ls "$SERVICEDIR") ; do
> 
> might more simply be written:
> 
> 	for SVC in "$SERVICEDIR"/* ; do
> 
> DKG: Can we make this change or was there a special reason for using ls?


(Hmm, actually the second has to be more like:

         cd "$SERVICEDIR"
         for SVC in * ; do

in order to yield the same results as the first.)

-- 
Thomas



More information about the Resolvconf-devel mailing list