Changeset 3252


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

Applied bash31-017

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

Legend:

Unmodified
Added
Removed
  • trunk/essentials/app-shells/bash/arrayfunc.c

    r3231 r3252  
    593593  strncpy (exp, s, len - 1);
    594594  exp[len - 1] = '\0';
    595 #if 0
    596   t = expand_string_to_string (exp, 0);
    597 #else
    598   t = expand_string_to_string (exp, Q_DOUBLE_QUOTES);
    599 #endif
     595  t = expand_arith_string (exp, 0);
    600596  this_command_name = (char *)NULL;
    601597  val = evalexp (t, &expok);
  • trunk/essentials/app-shells/bash/patchlevel.h

    r3251 r3252  
    2626   looks for to find the patch level (for the sccs version string). */
    2727
    28 #define PATCHLEVEL 16
     28#define PATCHLEVEL 17
    2929
    3030#endif /* _PATCHLEVEL_H_ */
  • trunk/essentials/app-shells/bash/subst.c

    r3240 r3252  
    25762576}
    25772577
     2578char *
     2579expand_arith_string (string, quoted)
     2580     char *string;
     2581{
     2582  return (expand_string_if_necessary (string, quoted, expand_string));
     2583}
     2584
    25782585#if defined (COND_COMMAND)
    25792586/* Just remove backslashes in STRING.  Returns a new string. */
     
    52495256    t = (char *)0;
    52505257
    5251   temp1 = expand_string_if_necessary (substr, Q_DOUBLE_QUOTES, expand_string);
     5258  temp1 = expand_arith_string (substr, Q_DOUBLE_QUOTES);
    52525259  *e1p = evalexp (temp1, &expok);
    52535260  free (temp1);
     
    52945301      t++;
    52955302      temp2 = savestring (t);
    5296       temp1 = expand_string_if_necessary (temp2, Q_DOUBLE_QUOTES, expand_string);
     5303      temp1 = expand_arith_string (temp2, Q_DOUBLE_QUOTES);
    52975304      free (temp2);
    52985305      t[-1] = ':';
     
    64366443
    64376444          /* Expand variables found inside the expression. */
    6438           temp1 = expand_string_if_necessary (temp2, Q_DOUBLE_QUOTES, expand_string);
     6445          temp1 = expand_arith_string (temp2, Q_DOUBLE_QUOTES);
    64396446          free (temp2);
    64406447
     
    64786485
    64796486       /* Do initial variable expansion. */
    6480       temp1 = expand_string_if_necessary (temp, Q_DOUBLE_QUOTES, expand_string);
     6487      temp1 = expand_arith_string (temp, Q_DOUBLE_QUOTES);
    64816488
    64826489      goto arithsub;
  • trunk/essentials/app-shells/bash/subst.h

    r3231 r3252  
    152152extern char *expand_assignment_string_to_string __P((char *, int));
    153153
     154/* Expand an arithmetic expression string */
     155extern char *expand_arith_string __P((char *, int));
     156
    154157/* De-quoted quoted characters in STRING. */
    155158extern char *dequote_string __P((char *));
Note: See TracChangeset for help on using the changeset viewer.