From 5da7e533f7860d3a00e784c638db0ac7b11bd36d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 17 Jul 2000 18:24:33 +0000 Subject: Don't strip trailing backslashes from a line. Treat them more reasonably. --- src/bin/psql/mainloop.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/bin/psql/mainloop.c') diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c index 0c72aeea6af..1b456fb63f9 100644 --- a/src/bin/psql/mainloop.c +++ b/src/bin/psql/mainloop.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.33 2000/07/14 15:43:49 thomas Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.34 2000/07/17 18:24:33 petere Exp $ */ #include "postgres.h" #include "mainloop.h" @@ -248,17 +248,6 @@ MainLoop(FILE *source) pset.lineno++; - /* strip trailing backslashes, they don't have a clear meaning */ - while (1) - { - char *cp = strrchr(line, '\\'); - - if (cp && (*(cp + 1) == '\0')) - *cp = '\0'; - else - break; - } - /* nothing left on line? then ignore */ if (line[0] == '\0') { -- cgit v1.2.3