This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Redirected to the Cygwin-Patches Mailing List.

Charli
>-----Original Message-----
>From: LIM Fung-Chai
>Sent: Thursday, August 17, 2006 8:31 AM
>To: Cygwin Mailing List
>Subject: Patch for script of util-linux-2.12r-2 with zsh.
>
>
>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
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]