Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 148115
Collapse All | Expand All

(-)bin/etc-update (-1 / +2 lines)
Lines 52-58 Link Here
52
		fi
52
		fi
53
53
54
		ofile=""
54
		ofile=""
55
		for file in $(find ${path}/ ${find_opts} ! -name '.*~' ! -name '.*.bak' |
55
		# The below set -f turns off file name globbing in the ${find_opts} expansion.
56
		for file in $(set -f; find ${path}/ ${find_opts} ! -iname '.*~' ! -iname '.*.bak' |
56
			   sed -e "s:\(^.*/\)\(\._cfg[0-9]*_\)\(.*$\):\1\2\3\%\2\%\3:" |
57
			   sed -e "s:\(^.*/\)\(\._cfg[0-9]*_\)\(.*$\):\1\2\3\%\2\%\3:" |
57
			   sort -t'%' -k3 -k2 | LANG=POSIX LC_ALL=POSIX cut -f1 -d'%'); do
58
			   sort -t'%' -k3 -k2 | LANG=POSIX LC_ALL=POSIX cut -f1 -d'%'); do
58
			rpath=$(echo "${file/\/\///}" | sed -e "s:/[^/]*$::")
59
			rpath=$(echo "${file/\/\///}" | sed -e "s:/[^/]*$::")

Return to bug 148115