Package: spell
Version: 1.0-15

try this:

% echo a b c >a
% spell a

it hangs forever...

i dunno, but the source code looks like it has some confusion with pin vs. 
pout... the patch below seems to fix it.

-dean

--- spell-1.0/spell.c.dg        2005-10-22 11:26:24.000000000 -0700
+++ spell-1.0/spell.c   2005-10-22 11:49:32.000000000 -0700
@@ -545,7 +545,7 @@
     {
       FD_ZERO(&fdset);
       FD_SET (the_pipe->perr, &fdset);
-      FD_SET (the_pipe->pout, &fdset);
+      FD_SET (the_pipe->pin, &fdset);
       time_out.tv_sec=1; time_out.tv_usec=0;
 
       ret=select(FD_SETSIZE, &fdset, NULL, NULL,&time_out);
@@ -569,7 +569,7 @@
           fprintf (stderr, "%s: %s\n", ispell_prog, str->str);
         }
 
-        if (FD_ISSET(the_pipe->pout, &fdset))
+        if (FD_ISSET(the_pipe->pin, &fdset))
         {
           /* This block parses Ispell's banner and grabs its version.  It then
              prints it if the flag `--ispell-version' or `-I' was used.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to