Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ed3240d

Browse files
author
Julian Assange
committed
bugfix: if NOREADLINE was not defined and input was not from a tty, then
the getopt() was not executed.
1 parent 64b130a commit ed3240d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/psql.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.10 1996/07/27 04:38:22 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.11 1996/07/28 06:48:42 julian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1134,8 +1134,8 @@ main(int argc, char** argv)
11341134
settings.opt.pager = 1;
11351135
if (!isatty(0) || !isatty(1))
11361136
settings.quiet = settings.notty = 1;
1137-
else
11381137
#ifndef NOREADLINE
1138+
else
11391139
settings.useReadline = 1;
11401140
#endif
11411141

0 commit comments

Comments
 (0)