Changeset 3252
- Timestamp:
- Apr 30, 2007, 1:17:24 AM (18 years ago)
- Location:
- trunk/essentials/app-shells/bash
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/app-shells/bash/arrayfunc.c
r3231 r3252 593 593 strncpy (exp, s, len - 1); 594 594 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); 600 596 this_command_name = (char *)NULL; 601 597 val = evalexp (t, &expok); -
trunk/essentials/app-shells/bash/patchlevel.h
r3251 r3252 26 26 looks for to find the patch level (for the sccs version string). */ 27 27 28 #define PATCHLEVEL 1 628 #define PATCHLEVEL 17 29 29 30 30 #endif /* _PATCHLEVEL_H_ */ -
trunk/essentials/app-shells/bash/subst.c
r3240 r3252 2576 2576 } 2577 2577 2578 char * 2579 expand_arith_string (string, quoted) 2580 char *string; 2581 { 2582 return (expand_string_if_necessary (string, quoted, expand_string)); 2583 } 2584 2578 2585 #if defined (COND_COMMAND) 2579 2586 /* Just remove backslashes in STRING. Returns a new string. */ … … 5249 5256 t = (char *)0; 5250 5257 5251 temp1 = expand_ string_if_necessary (substr, Q_DOUBLE_QUOTES, expand_string);5258 temp1 = expand_arith_string (substr, Q_DOUBLE_QUOTES); 5252 5259 *e1p = evalexp (temp1, &expok); 5253 5260 free (temp1); … … 5294 5301 t++; 5295 5302 temp2 = savestring (t); 5296 temp1 = expand_ string_if_necessary (temp2, Q_DOUBLE_QUOTES, expand_string);5303 temp1 = expand_arith_string (temp2, Q_DOUBLE_QUOTES); 5297 5304 free (temp2); 5298 5305 t[-1] = ':'; … … 6436 6443 6437 6444 /* 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); 6439 6446 free (temp2); 6440 6447 … … 6478 6485 6479 6486 /* 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); 6481 6488 6482 6489 goto arithsub; -
trunk/essentials/app-shells/bash/subst.h
r3231 r3252 152 152 extern char *expand_assignment_string_to_string __P((char *, int)); 153 153 154 /* Expand an arithmetic expression string */ 155 extern char *expand_arith_string __P((char *, int)); 156 154 157 /* De-quoted quoted characters in STRING. */ 155 158 extern char *dequote_string __P((char *));
Note:
See TracChangeset
for help on using the changeset viewer.