Hi.

> Why the -e?  You only got existing files in the glob above right? 

Almost. If the directory does not exist or is empty then the glob
pattern is returned literally, e.g. "echo /tmp/*" will expand to a list
of files but "echo /does_not_exist/*" will return "/does_not_exist/*"
literaly so the for-in loop will run once with the literal glob pattern
as argument, therefore the "-e" test is required.

~ Jow
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to