Patch for script of util-linux-2.12r-2 with zsh.

LIM Fung-Chai fclim@singnet.com.sg
Thu Aug 17 13:16:00 GMT 2006


Hi,

Here's a patch to make util-linux-2.12r-2/misc-utils/script work with 
zsh (the best and the greatest :-), and possibly with csh and tcsh as well.

diff -Naur util-linux-2.12r/misc-utils/script.c 
util-linux-2.12r-3/misc-utils/script.c
--- util-linux-2.12r/misc-utils/script.c        2006-02-24 
11:27:55.000000000 +0800
+++ util-linux-2.12r-3/misc-utils/script.c      2006-08-17 
20:21:40.734375000 +0800
@@ -431,8 +431,10 @@
        (void) tcsetattr(slave, TCSAFLUSH, &tt);
        (void) ioctl(slave, TIOCSWINSZ, (char *)&win);
 #endif
+#ifdef __CYGWIN__
+       (void) login_tty (slave);
+#else
        (void) setsid();
-#ifndef __CYGWIN__
        (void) ioctl(slave, TIOCSCTTY, 0);
 #endif
 }

Regards,
LIM Fung-Chai


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list