+ # Source them all in the right order.
+ sourced=
+ for i in $deps; do
+ for j in $profile_d/{,*/}$i; do
+ [ -e "$j" ] || continue
+ k="${j##$profile_d/}"
+ [ "${sourced/ $k /}" = "$sourced" ] || continue
+ . "$j"
+ sourced="$sourced $k "
+ break
+ done
+ done
+
+ # Maybe turn nocaseglob back on.
+ [ $nocg = 0 ] && shopt -s nocaseglob
+ # Maybe turn nullglob back off.
+ [ $nullglob = 0 ] || shopt -u nullglob
+
+ # Reset LC_ALL.
+ LC_ALL=$lc_all
+
+ unset i j k d n dep deps profile_d path required unsorted sourced
+ unset lc_all nullglob nocg
+
+ # Don't inherit failure from the last script.
+ true
+fi