Subject: sort is broken + fix
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: John F. Woods <jfw@jfwhome.funhouse.com>
List: current-users
Date: 08/03/1994 23:08:12
sort doesn't work for multiple files if one of the files is stdin (-).
I've just submitted a PR for this, including the following fix:
*** sort.c.orig Wed Aug 3 23:02:40 1994
--- sort.c Wed Aug 3 23:02:42 1994
***************
*** 1487,1496 ****
if (*s)
badfieldspec (argv[i]);
}
! else if (argv[i][0] == '-')
{
- if (!strcmp ("-", argv[i]))
- break;
s = argv[i] + 1;
if (digits[UCHAR (*s)])
{
--- 1487,1494 ----
if (*s)
badfieldspec (argv[i]);
}
! else if (argv[i][0] == '-' && argv[i][1])
{
s = argv[i] + 1;
if (digits[UCHAR (*s)])
{
------------------------------------------------------------------------------