This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
FW: Patch for script of util-linux-2.12r-2 with zsh.
- From: "Charli Li" <KBarticle889459 at aim dot com>
- To: "Cygwin-Patches Mailing List" <cygwin-patches at cygwin dot com>
- Date: Thu, 17 Aug 2006 12:19:48 -0400
- Subject: 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
>
>