[Resolvconf-devel] Question about dnscache script

Thomas Hood jdthood at gmail.com
Wed Jan 9 08:26:56 UTC 2008


Jeff King noticed that this line in the dnscache script

	for SVC in $(ls "$SERVICEDIR") ; do

might more simply be written:

	for SVC in "$SERVICEDIR"/* ; do

(The latter is also theoretically better because unlike the former it will
properly handle filenames containing spaces.)

DKG: Can we make this change or was there a special reason for using ls?
-- 
Thomas



More information about the Resolvconf-devel mailing list