=== modified file 'zsh-functions/zsv_defaults_postgresql' --- zsh-functions/zsv_defaults_postgresql 2014-06-28 04:12:27 +0000 +++ zsh-functions/zsv_defaults_postgresql 2014-06-28 04:08:10 +0000 @@ -17,12 +17,12 @@ : ${pg_user:=postgres} [[ -r $configfile ]] || exit 1 - setopt extended_glob - sed 's/[ ]*#.*//' <$configfile | while read key val; do - [[ -n $key ]] || continue + while read key val; do + [[ $key == \#* ]] && continue + val=${val/[$IFS]#\#*} [[ $val == '=*' ]] && val=${val/#=[$IFS]#} conf[$key]=${(Q)val} - done + done <$configfile reload_files+=( $configfile