All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			changed || to |& for bidirectional piping
		
			
				
	
	
		
			11 lines
		
	
	
		
			231 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			231 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| BEGIN {
 | |
| 	cmd = "sort";
 | |
| 	data = hawk::array("hello", "world", "two-way pipe", "testing");
 | |
| 
 | |
| 	for (i = 1; i <= length(data); i++) print data[i] |& cmd;
 | |
| 	close(cmd, "to");
 | |
| 
 | |
| 	while ((cmd |& getline line) > 0) print line;
 | |
| 	close(cmd);
 | |
| }
 |