I made pgsql2shp honour environmental variables. Before it forced an arbitrary default of localhost:5432 now will use any existing envoronment variable or fall back to libpq compile-time defaults. --strk;