summaryrefslogtreecommitdiffstats
path: root/bin/csh/func.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/csh/func.c')
-rw-r--r--bin/csh/func.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/csh/func.c b/bin/csh/func.c
index 1b8da96..f5cbe52 100644
--- a/bin/csh/func.c
+++ b/bin/csh/func.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)func.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: func.c,v 1.10 1998/02/28 10:49:56 jraynard Exp $";
+ "$Id: func.c,v 1.11 1998/07/27 21:15:52 nectar Exp $";
#endif
#endif /* not lint */
@@ -754,11 +754,12 @@ getword(wp)
c = readc(1);
if (c == '\\' && (c = readc(1)) == '\n')
c = ' ';
- if (c == '\'' || c == '"')
+ if (c == '\'' || c == '"') {
if (d == 0)
d = c;
else if (d == c)
d = 0;
+ }
if (c < 0)
goto past;
if (wp) {
OpenPOWER on IntegriCloud