mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	Fix infinite loop on `case' with xtrace.
This commit is contained in:
		
							parent
							
								
									c1441714b5
								
							
						
					
					
						commit
						14e13fb407
					
				
					 2 changed files with 7 additions and 3 deletions
				
			
		|  | @ -1,3 +1,8 @@ | |||
| 2001-10-23  Bart Schaefer  <schaefer@zsh.org> | ||||
| 
 | ||||
| 	* 16124: Src/loop.c: Fix infinite loop on `case' with xtrace | ||||
| 	(bug introduced by 16041). | ||||
| 
 | ||||
| 2001-10-23  Oliver Kiddle  <opk@zsh.org> | ||||
| 
 | ||||
| 	* 16122: Src/builtin.c, Test/B03print.ztst: only count value | ||||
|  |  | |||
|  | @ -553,9 +553,8 @@ execcase(Estate state, int do_exec) | |||
| 	    printprompt4(); | ||||
| 	    fprintf(xtrerr, "case %s (%s)\n", word, pat2); | ||||
| 	    fflush(xtrerr); | ||||
| 	    state->pc++; | ||||
| 	} else | ||||
| 	    state->pc += 2; | ||||
| 	} | ||||
| 	state->pc += 2; | ||||
| 
 | ||||
| 	if (*spprog != dummy_patprog1 && *spprog != dummy_patprog2) | ||||
| 	    pprog = *spprog; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue