← Commit list

40ec4aeb8

Rob Landley
Rob Landley
2004-01-04
FAILED Duration: 69s

Subject

Thinko in s//options. (Whitespace skipping in the wrong place.)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/sed.c+3 -2
@@ -344,10 +344,11 @@ static int parse_subst_cmd(sed_cmd_t * const sed_cmd, char *substr)
sed_cmd->which_match=(unsigned short)strtol(substr+idx,&pos,10);
idx=pos-substr;
}
- /* Skip spaces */
- if(isspace(substr[idx])) continue;
continue;
}
+ /* Skip spaces */
+ if(isspace(substr[idx])) continue;
+
switch (substr[idx]) {
/* Replace all occurrences */
case 'g':