Changeset 3236 for trunk


Ignore:
Timestamp:
Apr 30, 2007, 1:11:28 AM (18 years ago)
Author:
bird
Message:

Applied bash31-001

Location:
trunk/essentials/app-shells/bash
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/app-shells/bash/parse.y

    r3235 r3236  
    36983698      b = builtin_address_internal (token, 0);
    36993699      if (b && (b->flags & ASSIGNMENT_BUILTIN))
    3700         parser_state |= PST_ASSIGNOK;
     3700        parser_state |= PST_ASSIGNOK;
     3701      else if (STREQ (token, "eval") || STREQ (token, "let"))
     3702        parser_state |= PST_ASSIGNOK;
    37013703    }
    37023704
     
    46894691{
    46904692  WORD_LIST *wl, *rl;
    4691   int tok, orig_line_number, orig_token_size;
     4693  int tok, orig_line_number, orig_token_size, orig_last_token, assignok;
    46924694  char *saved_token, *ret;
    46934695
     
    46954697  orig_token_size = token_buffer_size;
    46964698  orig_line_number = line_number;
     4699  orig_last_token = last_read_token;
    46974700
    46984701  last_read_token = WORD;       /* WORD to allow reserved words here */
     
    47004703  token = (char *)NULL;
    47014704  token_buffer_size = 0;
     4705
     4706  assignok = parser_state&PST_ASSIGNOK;         /* XXX */
    47024707
    47034708  wl = (WORD_LIST *)NULL;       /* ( */
     
    47434748    }
    47444749
    4745   last_read_token = WORD;
     4750  last_read_token = orig_last_token;            /* XXX - was WORD? */
    47464751  if (wl)
    47474752    {
     
    47554760  if (retlenp)
    47564761    *retlenp = (ret && *ret) ? strlen (ret) : 0;
     4762
     4763  if (assignok)
     4764    parser_state |= PST_ASSIGNOK;
     4765
    47574766  return ret;
    47584767}
  • trunk/essentials/app-shells/bash/patchlevel.h

    r3231 r3236  
    2626   looks for to find the patch level (for the sccs version string). */
    2727
    28 #define PATCHLEVEL 0
     28#define PATCHLEVEL 1
    2929
    3030#endif /* _PATCHLEVEL_H_ */
Note: See TracChangeset for help on using the changeset viewer.