aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulian Assange <proff@suburbia.net>1996-07-28 06:48:42 +0000
committerJulian Assange <proff@suburbia.net>1996-07-28 06:48:42 +0000
commited3240d093e0fda4a8caa33b85a2636b6400c80a (patch)
treed058140626498c7f6c87c19eeb3b1879cfe520fb /src
parent64b130a8e73018972dab3df9e5ef42646ee9a68d (diff)
downloadpostgresql-ed3240d093e0fda4a8caa33b85a2636b6400c80a.tar.gz
postgresql-ed3240d093e0fda4a8caa33b85a2636b6400c80a.zip
bugfix: if NOREADLINE was not defined and input was not from a tty, then
the getopt() was not executed.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/psql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c
index 40c36036b3f..8180a3ea6cd 100644
--- a/src/bin/psql/psql.c
+++ b/src/bin/psql/psql.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.10 1996/07/27 04:38:22 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.11 1996/07/28 06:48:42 julian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1134,8 +1134,8 @@ main(int argc, char** argv)
settings.opt.pager = 1;
if (!isatty(0) || !isatty(1))
settings.quiet = settings.notty = 1;
- else
#ifndef NOREADLINE
+ else
settings.useReadline = 1;
#endif