script - for cygwin
This is a 'port' of the Unix utility script for
CYGWIN.
I take no credit for writing it. The source is based on NetBSD script,c
with 3 additional routines taken from the NetBSD runtimes that weren't
present in the cygwin library.
Download script.c
$ gcc -o script script.c
You may wish to ensure that the environment variable SHELL is set to
the shell that you want to run in the script, as this is used rather
than the currently running shell.