Fix the code to conform to the "or more" part of the following POSIX

specification and regression test regress:25.

  "A function can be preceded by one or more '!' characters, in which
  case the function shall be applied if the addresses do not select
  the pattern space."

MFC after:	2 weeks
This commit is contained in:
Diomidis Spinellis 2008-11-11 17:15:57 +00:00
parent b71c319dc6
commit 46da6c4869
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184854

View File

@ -224,7 +224,7 @@ semicolon: EATSPACE();
case NONSEL: /* ! */
p++;
EATSPACE();
cmd->nonsel = ! cmd->nonsel;
cmd->nonsel = 1;
goto nonsel;
case GROUP: /* { */
p++;