🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by bothner Tue, 10 Nov 1992 07:18
sed-1.12 bug: -n flag
#1069
Author: bothner
Date: Tue, 10 Nov 1992 07:18
40 lines
1645 bytes
It seems to me that the -n flag is a trifle hyper-active:
If should not suppress the output from the 'p' and 'w'
flags of the 's[ubstitute]' command.

A patch is included below.  If you're unconvinced,
I can send a test case.

This bug prevents libg++ from configuring when using sed-1.12.

	--Per Bothner
Cygnus Support     bothner@cygnus.com


*** sed.c~	Wed Nov  4 20:34:47 1992
--- sed.c	Tue Nov 10 13:30:33 1992
***************
*** 1562,1573 ****
  	  tmp.text = t.text;
  	  tmp.length = t.length;
  	  tmp.alloc = t.alloc;
! 	  if (cur_cmd->x.cmd_regex.flags & S_WRITE_BIT
! 	      && !no_default_output)
  	    ck_fwrite (line.text, 1, line.length,
  		       cur_cmd->x.cmd_regex.wio_file);
! 	  if (cur_cmd->x.cmd_regex.flags & S_PRINT_BIT
! 	      && !no_default_output)
  	    ck_fwrite (line.text, 1, line.length, stdout);
  	  break;
  
--- 1562,1571 ----
  	  tmp.text = t.text;
  	  tmp.length = t.length;
  	  tmp.alloc = t.alloc;
! 	  if (cur_cmd->x.cmd_regex.flags & S_WRITE_BIT)
  	    ck_fwrite (line.text, 1, line.length,
  		       cur_cmd->x.cmd_regex.wio_file);
! 	  if (cur_cmd->x.cmd_regex.flags & S_PRINT_BIT)
  	    ck_fwrite (line.text, 1, line.length, stdout);
  	  break;
  
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads