<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/script, branch release/8.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2010-05-14T12:34:06Z</updated>
<entry>
<title>MFC r207453:</title>
<updated>2010-05-14T12:34:06Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-05-14T12:34:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8f6794dda3b528eeeb22b19e2e9f3b9322ee5941'/>
<id>urn:sha1:8f6794dda3b528eeeb22b19e2e9f3b9322ee5941</id>
<content type='text'>
  Remove WNOHANG flag from wait3().

  Because script(1) now reliably terminates when the TTY is closed, it may
  be the case that the call to wait3() occurs just before the child
  process exits. This causes error codes to be ignored.

  Just change script(1) to use waitpid() instead of wait3(). This makes it
  more portable and prevents the need for a loop, since waitpid() only
  returns a specified process.

PR:           bin/146189
Tested by:    amdmi3@, older version
</content>
</entry>
<entry>
<title>MFC r205008 and 205009:</title>
<updated>2010-03-25T08:33:56Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-03-25T08:33:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4ae65fe952e1b101a8d0a15c0b129c570cfb633a'/>
<id>urn:sha1:4ae65fe952e1b101a8d0a15c0b129c570cfb633a</id>
<content type='text'>
  Make script(1) a little less broken.

  Close the file descriptor to the TTY. There is no reason why the parent
  process should keep track of the descriptor. This ensures that the
  application inside properly drains the TTY during exit(2).

  Reported by:  alfred
</content>
</entry>
<entry>
<title>Deal with double whitespace.</title>
<updated>2004-07-03T00:24:45Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2004-07-03T00:24:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=557b7fa1488f8937156051e061ac3512330bcb7e'/>
<id>urn:sha1:557b7fa1488f8937156051e061ac3512330bcb7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Mechanically kill hard sentence breaks.</title>
<updated>2004-07-02T22:22:35Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2004-07-02T22:22:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6a3e8b0adc8c622ae61275a94d5d869980a68069'/>
<id>urn:sha1:6a3e8b0adc8c622ae61275a94d5d869980a68069</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bumped document date.</title>
<updated>2004-05-19T09:53:03Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2004-05-19T09:53:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c548db03535bae503114e2f62f37aceb1127a918'/>
<id>urn:sha1:c548db03535bae503114e2f62f37aceb1127a918</id>
<content type='text'>
Fixed markup nit.
</content>
</entry>
<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/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/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/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/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>Introduce arguments the standard way. In .Ar command ..., ... is not an</title>
<updated>2003-09-07T15:43:50Z</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>2003-09-07T15:43:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fed771de60a003d3cf70e77bb7ff14971dd7ed78'/>
<id>urn:sha1:fed771de60a003d3cf70e77bb7ff14971dd7ed78</id>
<content type='text'>
argument, command is.
</content>
</entry>
</feed>
