Subject: Re: script command
To: Simon J. Gerraty <sjg@crufty.net>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
Date: 05/01/2003 12:31:03
[ On Wednesday, April 30, 2003 at 21:43:54 (-0700), Simon J. Gerraty wrote: ]
> Subject: Re: script command 
>
> On Wed, 30 Apr 2003 12:49:32 -0400 (EDT), "Greg A. Woods" writes:
> > Ah, well there is that nifty snp(4) driver and associated watch(8)
> > command in FreeBSD.   I don't know if it works on /dev/tty itself, but
> 
> Perhaps, but porting script(1) to solaris and linux is a bit more
> feasible ;-)

I assume you mean porting the FreeBSD version of script(1) to pkgsrc,
and maybe eventually even bringing it into NetBSD proper.

If you do that then hopefully you can fix their parameter syntax botch
so that the "bug" they mention about the "command" feature goes away.
I'm thinking the synopsis should be:

     script [-a] [-k] [-q] [-t time] [-o file] [-c command [args ...]]

  deprectated:
     script [-a] file


I.e. the new feature should work like "sh -c", and thus "su -c" et al,
and that anyone wanting to use the new feature must use the new syntax.

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>