x
This commit is contained in:
		
							parent
							
								
									07cf0eb255
								
							
						
					
					
						commit
						e67cb408d4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -134,7 +134,7 @@ runcmd(struct cmd *cmd)
 | 
				
			||||||
int
 | 
					int
 | 
				
			||||||
getcmd(char *buf, int nbuf)
 | 
					getcmd(char *buf, int nbuf)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  write(1, "$ ", 2);
 | 
					  write(2, "$ ", 2);
 | 
				
			||||||
  memset(buf, 0, nbuf);
 | 
					  memset(buf, 0, nbuf);
 | 
				
			||||||
  gets(buf, nbuf);
 | 
					  gets(buf, nbuf);
 | 
				
			||||||
  if(buf[0] == 0) // EOF
 | 
					  if(buf[0] == 0) // EOF
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue