388 |
/* |
/* |
389 |
* We cannot depend on the command PATH, because global(1) |
* We cannot depend on the command PATH, because global(1) |
390 |
* might be called from WWW server. Since usable() looks for |
* might be called from WWW server. Since usable() looks for |
391 |
* the command in BINDIR directory first, gnusort need not |
* the command in BINDIR directory first, POSIX_SORT need not |
392 |
* be in command PATH. |
* be in command PATH. |
393 |
*/ |
*/ |
394 |
sort = usable("gnusort"); |
sort = usable(POSIX_SORT); |
395 |
if (!sort) |
if (!sort) |
396 |
die("gnusort not found."); |
die("%s not found.", POSIX_SORT); |
397 |
sortfilter = strbuf_open(0); |
sortfilter = strbuf_open(0); |
398 |
strbuf_puts(sortfilter, sort); |
strbuf_puts(sortfilter, sort); |
399 |
if (sflag) { |
if (sflag) { |