fix trimming with ? on $* and $@; missed by Todd Miller in r2.2 in ncvs
where it was fixed for ${foo[@]} and ${foo[*]}
			
			
This commit is contained in:
		
							
								
								
									
										3
									
								
								eval.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								eval.c
									
									
									
									
									
								
							| @@ -23,7 +23,7 @@ | |||||||
|  |  | ||||||
| #include "sh.h" | #include "sh.h" | ||||||
|  |  | ||||||
| __RCSID("$MirOS: src/bin/mksh/eval.c,v 1.184 2016/02/26 18:48:12 tg Exp $"); | __RCSID("$MirOS: src/bin/mksh/eval.c,v 1.185 2016/02/26 19:05:21 tg Exp $"); | ||||||
|  |  | ||||||
| /* | /* | ||||||
|  * string expansion |  * string expansion | ||||||
| @@ -1193,6 +1193,7 @@ varsub(Expand *xp, const char *sp, const char *word, | |||||||
| 		/* can't trim a vector (yet) */ | 		/* can't trim a vector (yet) */ | ||||||
| 		case '%': | 		case '%': | ||||||
| 		case '#': | 		case '#': | ||||||
|  | 		case '?': | ||||||
| 		case '0': | 		case '0': | ||||||
| 		case '/': | 		case '/': | ||||||
| 		case 0x100 | '#': | 		case 0x100 | '#': | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user