<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/script/script.c, branch releng/13.5</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.5</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.5'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-04-29T05:28:45Z</updated>
<entry>
<title>script: handle terminal resize on SIGWINCH</title>
<updated>2024-04-29T05:28:45Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2024-04-26T16:12:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f224a2ca04ad8c9322738517a9092bc488256bc8'/>
<id>urn:sha1:f224a2ca04ad8c9322738517a9092bc488256bc8</id>
<content type='text'>
Add a -w flag to forward terminal resize events on to the child, which
can be useful in some circumstances to avoid terminal corruption.

Reviewed by:	des
Co-authored-by:	Xavier Beaudouin &lt;xavier.beaudouin@klarasystems.com&gt;
Sponsored by:	Modirum MDPay
Sponsored by:	Klara, Inc.

(cherry picked from commit 8ceac8e13dccbe4e177c8f2f443b87b7d2e3edb3)
</content>
</entry>
<entry>
<title>script: minor style improvements</title>
<updated>2024-04-29T05:28:45Z</updated>
<author>
<name>Xavier Beaudouin</name>
<email>xavier.beaudouin@klarasystems.com</email>
</author>
<published>2024-04-26T16:10:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2a2cc22f517b837ee6dbf1f44b99ee3fdca93b12'/>
<id>urn:sha1:2a2cc22f517b837ee6dbf1f44b99ee3fdca93b12</id>
<content type='text'>
Fix some nits pointed out by checkstyle9.pl in advance of functional
changes to script(1).

Reviewed by:	des
Sponsored by:	Modirum MDPay
Sponsored by:	Klara, Inc.

(cherry picked from commit 4459abe334eb4dbd416fa8094a64afc065ccd1cc)
</content>
</entry>
<entry>
<title>Mark usage function as __dead2 in programs where it does not return</title>
<updated>2023-09-14T14:59:52Z</updated>
<author>
<name>Alfonso Gregory</name>
<email>gfunni234@gmail.com</email>
</author>
<published>2023-07-07T16:39:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9dcbb9e681d70bbe6bab093ddea60bd8687f2c4c'/>
<id>urn:sha1:9dcbb9e681d70bbe6bab093ddea60bd8687f2c4c</id>
<content type='text'>
In most cases, usage does not return, so mark them as __dead2. For the
cases where they do return, they have not been marked __dead2.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/735

(cherry picked from commit cccdaf507eee8fb34494b4624eb85bb951e323c8)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-23T17:43:26Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3d497e17ebd33fe0f58d773e35ab994d750258d6'/>
<id>urn:sha1:3d497e17ebd33fe0f58d773e35ab994d750258d6</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in main:
(cherry picked from commit 1d386b48a555)
</content>
</entry>
<entry>
<title>script: Correct -F in man page and usage string.</title>
<updated>2022-11-02T09:44:48Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2022-10-26T18:08:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7a254e64bf3d0d7d81f80ffa5ae00cd73deb7e6d'/>
<id>urn:sha1:7a254e64bf3d0d7d81f80ffa5ae00cd73deb7e6d</id>
<content type='text'>
Sponsored by:	Klara, Inc.
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D37138

(cherry picked from commit 8e096e24d4344b6d3d16e24d58d5d8a0fa9733c9)

script: Add usage string for playback mode.

Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D37138

(cherry picked from commit e7c13cf4383d8216149becf7f843a2e00b30d2e2)

script: Use size_t / ssize_t where needed.

Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D37177

(cherry picked from commit 3276866f40caaf3d5605d5695f460cbdf035ef45)

script: Further usage string nits.

Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D37177

(cherry picked from commit 6ac087cf8ff4de22dc0b1b7ce1248f0a1558ddc2)

script: Handle a missing 's' stamp gracefully.

Sponsored by:	Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D37182

(cherry picked from commit 473e9fcab4ea9379f53e1f7d8e41f5a5754d0007)
</content>
</entry>
<entry>
<title>script add -T fmt to print time-stamps</title>
<updated>2022-11-02T09:44:46Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2022-03-09T21:33:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9ba17e2d1c2ffc9d00ce020d53523365a0d85f1b'/>
<id>urn:sha1:9ba17e2d1c2ffc9d00ce020d53523365a0d85f1b</id>
<content type='text'>
script -r is useful for recording time-stamps of when output
happened.  With -T, rather than playback the script in real-time
we simply print the time-stamps to show when the output happened.

This is very useful for example, for analyzing boot time activity.

If the fmt provided contains no % characters the default
%n@ %s [%Y-%m-%d %T]
is used, which lends itself to analysis by tools as well as humans.

Sponsored by:	Juniper Networks, Inc.

Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D34511

(cherry picked from commit 6c4afed5667a65f3c5bd308a934e7de8c0526954)

script -T skip timstamps for same second

The result is much more readable if we only output the time-stamp
when it is at least 1s since last one.

(cherry picked from commit 7b45ad3f89cc4d65a23f7d034329dd3f8dd3105f)

script: use %n at the end of default tstamp_fmt

Since we are only outputting time-stamps when they differ
ending it with a newline, interferes with the output less.

(cherry picked from commit 31fde973577d0e09caccf0d762135bfa6b14f1f3)
</content>
</entry>
<entry>
<title>script(1): work around slow reading child</title>
<updated>2022-01-15T12:55:32Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2022-01-08T13:19:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6c12b392280cf99380ad2897d37d46659e8a1d9a'/>
<id>urn:sha1:6c12b392280cf99380ad2897d37d46659e8a1d9a</id>
<content type='text'>
PR:	260938

(cherry picked from commit c0ba4c2ee2c48ec9892d10c0aca797f3685c53ee)
</content>
</entry>
<entry>
<title>Fix typo in comment.</title>
<updated>2020-09-05T04:20:29Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2020-09-05T04:20:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=84961358b4dd5d500d97105c2afbeb9ff91afb1b'/>
<id>urn:sha1:84961358b4dd5d500d97105c2afbeb9ff91afb1b</id>
<content type='text'>
Noticed by: bapt@
</content>
</entry>
<entry>
<title>Have script accept and ignore -e for Linux compat</title>
<updated>2020-09-01T16:11:23Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2020-09-01T16:11:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f9177b6c91b3827e0afac74cd8625f3c36fa0277'/>
<id>urn:sha1:f9177b6c91b3827e0afac74cd8625f3c36fa0277</id>
<content type='text'>
In the util-linux version of script, it will always exit with succes.
Except when run with -e, in which case it will have the exit value of
the child. BSD Script already uses the child's exit value for its exit
value. Some config and other helper scripts depend on being able to
specify -e. Accept it for compatibility since we'll already to the
right thing, but otherwise we ignore it.
</content>
</entry>
<entry>
<title>script: Minor cleanups.</title>
<updated>2020-08-11T14:19:05Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2020-08-11T14:19:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8bc30d2afda0dae4b708b298c6b1e9d8ec2b8a7d'/>
<id>urn:sha1:8bc30d2afda0dae4b708b298c6b1e9d8ec2b8a7d</id>
<content type='text'>
- Instead of using isatty() to decide whether to call tcgetattr(), just
  call tcgetattr() directly, since that's all that isatty() does anyway.
- Simplify error handling in termset().  Check for errno != ENOTTY from
  tcgetattr() to handle errors that may be raised while running
  script(1) under a debugger.

PR:		248377
Submitted by:	Soumendra Ganguly &lt;soumendraganguly@gmail.com&gt;
MFC after:	1 week
</content>
</entry>
</feed>
