cat should exit normally if reading from stdin
This commit is contained in:
		
							parent
							
								
									9ead904afe
								
							
						
					
					
						commit
						4cf0b0973e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -28,7 +28,7 @@ main(int argc, char *argv[])
 | 
			
		|||
 | 
			
		||||
  if(argc <= 1){
 | 
			
		||||
    cat(0);
 | 
			
		||||
    exit(1);
 | 
			
		||||
    exit(0);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  for(i = 1; i < argc; i++){
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue