mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	do not resend signal on termination (rhbz#1075635)
public bug: https://bugzilla.redhat.com/1075635
patched by: 642af4d6/f/ksh-20120801-sufix.patch
src/cmd/ksh93/sh/io.c: io_prompt():
- Reset the currently running command's exit status (exitval) when
  writing the prompt. This does not affect "$?" which is savexit.
			
			
This commit is contained in:
		
							parent
							
								
									3050bf28bc
								
							
						
					
					
						commit
						352e68dabd
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -2096,6 +2096,7 @@ static int	io_prompt(Shell_t *shp,Sfio_t *iop,register int flag)
 | 
			
		|||
			}
 | 
			
		||||
#endif	/* TIOCLBIC */
 | 
			
		||||
			cp = sh_mactry(shp,nv_getval(sh_scoped(shp,PS1NOD)));
 | 
			
		||||
			shp->exitval = 0;
 | 
			
		||||
			for(;c= *cp;cp++)
 | 
			
		||||
			{
 | 
			
		||||
				if(c==HIST_CHAR)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue