svn commit: r212770 - head/usr.bin/script

Anonymous swell.k at gmail.com
Mon Dec 20 07:39:41 UTC 2010


"David E. O'Brien" <obrien at FreeBSD.org> writes:

> Author: obrien
> Date: Thu Sep 16 22:31:03 2010
> New Revision: 212770
> URL: http://svn.freebsd.org/changeset/base/212770
>
> Log:
>   + Add the 'command' argument (if supplied on the command line) to the
>   typescript file.  This creates a more complete typescript when invoked
>   this way - more equal to invoking script without supplying the 'command'
>   argument.
[...]
> +	if (av[0])
> +		for (k = 0 ; av[k] ; ++k)
> +			fprintf(fscript, "%s%s", k ? " " : "", av[k]);
> +		fprintf(fscript, "\r\n");
> +

Can you make it opt-in? It breaks scripts that do not expect anything
other than command output in a typescript. For example, timestamps can
be disabled by `-q' option. Which make below syntax

  script -q file command ...

another way to write

  command >file 2>&1

but it captures output sent to /dev/tty, too.

Besides, the commit also breaks bin/114465, a replay feature from NetBSD.


More information about the svn-src-all mailing list