[BACK]Return to what.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / what

Diff for /src/usr.bin/what/what.c between version 1.12 and 1.13

version 1.12, 2009/10/27 23:59:50 version 1.13, 2015/01/22 19:10:17
Line 100 
Line 100 
                                 if ((c = getchar()) != match[i])                                  if ((c = getchar()) != match[i])
                                         goto loop;                                          goto loop;
                         printf("\t$%s", match);                          printf("\t$%s", match);
                         while (isprint(c = getchar()))                          while (isprint(c = getchar())) {
                                 putchar(c);                                  putchar(c);
                                   if (c == '$')
                                           break;
                           }
                         putchar('\n');                          putchar('\n');
                         matches++;                          matches++;
                         if (sflag)                          if (sflag)

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13