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

Applied bash31-017

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.