" fi ;; esac done } # list_prefix LIST-NAME SEP -> STRING - Return string with each element # of LIST-NAME preceded by SEP. list_prefix () { lp_separator="$2" eval set X \$$1 shift lp_result='' for i do lp_result="$lp_result \"$lp_separator\" \"$i\"" done echo "$lp_result" } # list_infix LIST-NAME SEP -> STRING - Same as list_prefix, but a separator. list_infix () { eval set X \$$1 shift save_IFS="$IFS" IFS=$path_sep echo "$*" IFS=$save_IFS } #