<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/script, branch releng/13.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.4'/>
<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 nroff pattern</title>
<updated>2023-08-23T17:43:32Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=24115b70d6d614ed7ac5cfc4f51fa9d6cfe8b1b2'/>
<id>urn:sha1:24115b70d6d614ed7ac5cfc4f51fa9d6cfe8b1b2</id>
<content type='text'>
Remove /^\.\\"\s*\$FreeBSD\$$\n/

Similar commit in main:
(cherry picked from commit b2c76c41be32)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-23T17:43:30Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9'/>
<id>urn:sha1:023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
</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>Add some examples to script.1</title>
<updated>2021-01-05T15:32:27Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2021-01-05T15:28:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d41149a8e9cbb76ff89322a3363299f1b93823d2'/>
<id>urn:sha1:d41149a8e9cbb76ff89322a3363299f1b93823d2</id>
<content type='text'>
While here:

- Split synopsis into two parts. The first explains how to record
  sessions, while the second one explains how to replay (some of)
  the recorded sessions.
- Fix the -width argument of the environment variables list.

MFC after:	1 week
</content>
</entry>
</feed>
