<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/usr.bin/script/script.c, branch release/5.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2004-02-15T17:30:13Z</updated>
<entry>
<title>Attempt #2 to fix script(1) if the standard input is closed: If we</title>
<updated>2004-02-15T17:30:13Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2004-02-15T17:30:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d6a68195afb81df3adb0eefffea083d219e8035e'/>
<id>urn:sha1:d6a68195afb81df3adb0eefffea083d219e8035e</id>
<content type='text'>
read EOF from STDIN_FILENO, write zero bytes into the pseudo-terminal;
this is interpreted as an EOF by the program being scripted.

I've tested this with two non-interactive scripts:
# echo 5 | script foo sh -c 'read x; sleep $x; echo bar'
# echo bar | xargs script foo echo
and one interactive program:
# script foo more /etc/passwd
and everything seems to work properly...

PR:		bin/56166, bin/57414, ports/57415, ports/60534
Approved by:	rwatson (mentor)
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Back out part of 1.21, since it breaks `script interactive-program`.  This</title>
<updated>2004-01-27T17:50:47Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2004-01-27T17:50:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0a43b788bf7b57041363353142cc8d23b588cc5b'/>
<id>urn:sha1:0a43b788bf7b57041363353142cc8d23b588cc5b</id>
<content type='text'>
re-breaks non-interactive portupgrade (or at least old versions of
portupgrade); I'll see if I can put together a solution which avoids
breaking anything later.

Approved by:	rwatson (mentor)
Noticed by:	Stefan Farfeleder, Joshua Goodall
</content>
</entry>
<entry>
<title>Fix SYNOPSIS of manual page, clustering no-arg options correctly.</title>
<updated>2004-01-22T21:26:41Z</updated>
<author>
<name>Sheldon Hearn</name>
<email>sheldonh@FreeBSD.org</email>
</author>
<published>2004-01-22T21:26:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4294ff16a71fdc03ab7b1dc1df70caa25488d853'/>
<id>urn:sha1:4294ff16a71fdc03ab7b1dc1df70caa25488d853</id>
<content type='text'>
Sync usage with manpage.
</content>
</entry>
<entry>
<title>Two fixes for script(1):</title>
<updated>2004-01-22T21:01:14Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2004-01-22T21:01:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e292a0e3f1426e75dca5476fb138f368b489a3f0'/>
<id>urn:sha1:e292a0e3f1426e75dca5476fb138f368b489a3f0</id>
<content type='text'>
1. Don't do tty stuff to stdin if stdin isn't a tty.
2. When running in non-interactive mode, don't select(2)
on the standard input.

This un-breaks non-interactive portupgrade.

PR: bin/59036 [1]
PR: bin/56166, bin/57414, ports/57415, ports/60534 [2]
MFC after: 7 days
Approved by: rwatson (mentor)
</content>
</entry>
<entry>
<title>ANSIify function definitions.</title>
<updated>2002-09-04T23:29:10Z</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2002-09-04T23:29:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f4ac32def255b5968bdd8150057b9c0d14595689'/>
<id>urn:sha1:f4ac32def255b5968bdd8150057b9c0d14595689</id>
<content type='text'>
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by:	md5
</content>
</entry>
<entry>
<title>Use POSIX macros for wait(2)-style status information instead of the</title>
<updated>2002-06-03T23:13:11Z</updated>
<author>
<name>Mike Barcroft</name>
<email>mike@FreeBSD.org</email>
</author>
<published>2002-06-03T23:13:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=cb263c35947b04e5f9f54202f6761069e2663931'/>
<id>urn:sha1:cb263c35947b04e5f9f54202f6761069e2663931</id>
<content type='text'>
deprecated 4.2/4.3BSD wait union.  Fix some nearby pid_t/int
confusion.
</content>
</entry>
<entry>
<title>remove __P</title>
<updated>2002-03-22T01:42:45Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2002-03-22T01:42:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3f330d7d1a3fe98c53faf01d0f30c0a9fbb37c41'/>
<id>urn:sha1:3f330d7d1a3fe98c53faf01d0f30c0a9fbb37c41</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Minor style stuff, use __FBSDID(), remove to-be-default WARNS=2.</title>
<updated>2001-12-12T23:23:52Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2001-12-12T23:23:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d20f95e12191bf347c34331595936a559ea28cb2'/>
<id>urn:sha1:d20f95e12191bf347c34331595936a559ea28cb2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Warns cleanups. Add FreeBSD ID.</title>
<updated>2001-12-03T21:22:56Z</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2001-12-03T21:22:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b139689c6b078761358452d54e9b2d0883e4730b'/>
<id>urn:sha1:b139689c6b078761358452d54e9b2d0883e4730b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use STD{ERR,IN,OUT}_FILENO instead of their numeric values.  The</title>
<updated>2001-07-26T11:02:39Z</updated>
<author>
<name>Sheldon Hearn</name>
<email>sheldonh@FreeBSD.org</email>
</author>
<published>2001-07-26T11:02:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e1b4d8d0746069292d84708b0e11b17a7e1ef5e0'/>
<id>urn:sha1:e1b4d8d0746069292d84708b0e11b17a7e1ef5e0</id>
<content type='text'>
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.

Submitted by:   David Hill &lt;david@phobia.ms&gt;
</content>
</entry>
</feed>
