mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
bugfix: if NOREADLINE was not defined and input was not from a tty, then
the getopt() was not executed.
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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;
|
settings.opt.pager = 1;
|
||||||
if (!isatty(0) || !isatty(1))
|
if (!isatty(0) || !isatty(1))
|
||||||
settings.quiet = settings.notty = 1;
|
settings.quiet = settings.notty = 1;
|
||||||
else
|
|
||||||
#ifndef NOREADLINE
|
#ifndef NOREADLINE
|
||||||
|
else
|
||||||
settings.useReadline = 1;
|
settings.useReadline = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user