echo "Contemplating profiles for $profile:" >&2
unset active
declare -A active
- while read p;do
- active[$p]=1
+ while read pname;do
+ active[$pname]=1
done < <(verbose_topn ${cfg.logdir}/active-profiles "$profile" ${escapeShellArg cfg.keepLastActive})
current=$(${pkgs.coreutils}/bin/readlink "$profile")
currentgen=''${current%-link}