/[global]/global/global/global.c
ViewVC logotype

Diff of /global/global/global.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.82 by shigio, Sun Nov 7 12:24:11 2004 UTC revision 1.83 by shigio, Tue Nov 9 03:21:08 2004 UTC
# Line 385  main(argc, argv) Line 385  main(argc, argv)
385           */           */
386          {          {
387                  int unique = 0;                  int unique = 0;
388                    char *sort;
389    
390                    /*
391                     * We cannot depend on the command PATH, because global(1)
392                     * might be called from WWW server. Since usable() looks for
393                     * the command in BINDIR directory first, gnusort need not
394                     * be in command PATH.
395                     */
396                    sort = usable("gnusort");
397                    if (!sort)
398                            die("gnusort not found.");
399                  sortfilter = strbuf_open(0);                  sortfilter = strbuf_open(0);
400                  strbuf_puts(sortfilter, "gnusort");                  strbuf_puts(sortfilter, sort);
401                  if (sflag) {                  if (sflag) {
402                          strbuf_puts(sortfilter, " -u");                          strbuf_puts(sortfilter, " -u");
403                          unique = 1;                          unique = 1;

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26