projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modern syntax for asgops & inits cause Donn's latest ccom rejects the old.
[unix-history]
/
usr
/
src
/
old
/
sh
/
word.c
diff --git
a/usr/src/old/sh/word.c
b/usr/src/old/sh/word.c
index
7a295e7
..
3437fd6
100644
(file)
--- a/
usr/src/old/sh/word.c
+++ b/
usr/src/old/sh/word.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)word.c 4.
3
%G%";
+static char sccsid[] = "@(#)word.c 4.
6
%G%";
#endif
#
#endif
#
@@
-28,7
+28,8
@@
word()
WHILE (c=nextc(0), space(c)) DONE
WHILE (c=nextc(0), space(c)) DONE
- IF c=='#'
+ IF c=='#' ANDF ((flags&prompt)==0 ORF ((flags&ttyflg) ANDF
+ standin->fstak!=0))
THEN WHILE (c=readc()) ANDF c!=NL DONE
FI
THEN WHILE (c=readc()) ANDF c!=NL DONE
FI