Chad Wagner wrote: > 1. if pset.notty is set and '-f' switch is not set then use > simple_prompt -- deals with SQL script redirection case and '-f' is > not used, and not interactive > 2. else then use gets_fromFile(stdin) <or some other alternative?> > (read from stdin)
That seems a bit too complicated. Programs generally shouldn't behave differently depending on whether stdin or stdout are redirected. I was just raising the point because the shell command "read" reads from stdin and is quite useful noninteractively. I'm not sure, however, that the proposed \prompt command has much use in that regard. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly
