diff options
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index 0d7cac0b5..384c7b9e4 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -11899,6 +11899,7 @@ static int | |||
11899 | readtoken(void) | 11899 | readtoken(void) |
11900 | { | 11900 | { |
11901 | int t; | 11901 | int t; |
11902 | int kwd = checkkwd; | ||
11902 | #if DEBUG | 11903 | #if DEBUG |
11903 | smallint alreadyseen = tokpushback; | 11904 | smallint alreadyseen = tokpushback; |
11904 | #endif | 11905 | #endif |
@@ -11912,7 +11913,7 @@ readtoken(void) | |||
11912 | /* | 11913 | /* |
11913 | * eat newlines | 11914 | * eat newlines |
11914 | */ | 11915 | */ |
11915 | if (checkkwd & CHKNL) { | 11916 | if (kwd & CHKNL) { |
11916 | while (t == TNL) { | 11917 | while (t == TNL) { |
11917 | parseheredoc(); | 11918 | parseheredoc(); |
11918 | t = xxreadtoken(); | 11919 | t = xxreadtoken(); |
@@ -11926,7 +11927,7 @@ readtoken(void) | |||
11926 | /* | 11927 | /* |
11927 | * check for keywords | 11928 | * check for keywords |
11928 | */ | 11929 | */ |
11929 | if (checkkwd & CHKKWD) { | 11930 | if (kwd & CHKKWD) { |
11930 | const char *const *pp; | 11931 | const char *const *pp; |
11931 | 11932 | ||
11932 | pp = findkwd(wordtext); | 11933 | pp = findkwd(wordtext); |