|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0 |
|
| #
2c24df87 |
| 26-Apr-2024 |
Kyle Evans <[email protected]> |
script: handle terminal resize on SIGWINCH
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
script: handle terminal resize on SIGWINCH
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 <[email protected]> Sponsored by: Modirum MDPay Sponsored by: Klara, Inc.
(cherry picked from commit 8ceac8e13dccbe4e177c8f2f443b87b7d2e3edb3)
show more ...
|
| #
fb4c7bf8 |
| 26-Apr-2024 |
Xavier Beaudouin <[email protected]> |
script: minor style improvements
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.
(
script: minor style improvements
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)
show more ...
|
|
Revision tags: release/13.3.0, release/14.0.0 |
|
| #
1d386b48 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
cccdaf50 |
| 07-Jul-2023 |
Alfonso Gregory <[email protected]> |
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dea
Mark usage function as __dead2 in programs where it does not return
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
show more ...
|
|
Revision tags: release/13.2.0, release/12.4.0 |
|
| #
473e9fca |
| 27-Oct-2022 |
Dag-Erling Smørgrav <[email protected]> |
script: Handle a missing 's' stamp gracefully.
Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D37182
|
| #
6ac087cf |
| 27-Oct-2022 |
Dag-Erling Smørgrav <[email protected]> |
script: Further usage string nits.
Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D37177
|
| #
3276866f |
| 27-Oct-2022 |
Dag-Erling Smørgrav <[email protected]> |
script: Use size_t / ssize_t where needed.
Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D37177
|
| #
e7c13cf4 |
| 26-Oct-2022 |
Dag-Erling Smørgrav <[email protected]> |
script: Add usage string for playback mode.
Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D37138
|
| #
8e096e24 |
| 26-Oct-2022 |
Dag-Erling Smørgrav <[email protected]> |
script: Correct -F in man page and usage string.
Sponsored by: Klara, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37138
|
|
Revision tags: release/13.1.0 |
|
| #
31fde973 |
| 10-Mar-2022 |
Simon J. Gerraty <[email protected]> |
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.
|
| #
7b45ad3f |
| 10-Mar-2022 |
Simon J. Gerraty <[email protected]> |
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.
|
| #
6c4afed5 |
| 09-Mar-2022 |
Simon J. Gerraty <[email protected]> |
script add -T fmt to print time-stamps
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 t
script add -T fmt to print time-stamps
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
show more ...
|
| #
c0ba4c2e |
| 08-Jan-2022 |
Konstantin Belousov <[email protected]> |
script(1): work around slow reading child
If child is slow reading from its input, or even completely stops doing the read, script(1) hangs in write(2) to the pts master waiting until there is a spa
script(1): work around slow reading child
If child is slow reading from its input, or even completely stops doing the read, script(1) hangs in write(2) to the pts master waiting until there is a space in the terminal discipline buffer. This also stops handling any outer io, as well as child output.
Work around the problem by making pts master fd non-blocking, and be prepared for short writes to it. The data to be written to master is buffered in the tailq which is processed when select(2) detects that master is ready for write.
PR: 260938 Reported by: наб <[email protected]> See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1003095 Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33789
show more ...
|
|
Revision tags: release/12.3.0, release/13.0.0, release/12.2.0 |
|
| #
84961358 |
| 05-Sep-2020 |
Warner Losh <[email protected]> |
Fix typo in comment.
Noticed by: bapt@
|
| #
f9177b6c |
| 01-Sep-2020 |
Warner Losh <[email protected]> |
Have script accept and ignore -e for Linux compat
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 chil
Have script accept and ignore -e for Linux compat
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.
show more ...
|
| #
8bc30d2a |
| 11-Aug-2020 |
Mark Johnston <[email protected]> |
script: Minor cleanups.
- 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
script: Minor cleanups.
- 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 <[email protected]> MFC after: 1 week
show more ...
|
| #
69bc4fa9 |
| 07-Aug-2020 |
Mark Johnston <[email protected]> |
script: Put the terminal in raw mode when playing back a session.
Otherwise recorded sessions of some interactive programs do not play back properly.
PR: 248377 Submitted by: Soumendra Ganguly <0.
script: Put the terminal in raw mode when playing back a session.
Otherwise recorded sessions of some interactive programs do not play back properly.
PR: 248377 Submitted by: Soumendra Ganguly <[email protected]> MFC after: 1 week
show more ...
|
|
Revision tags: release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
| #
8a16b7a1 |
| 20-Nov-2017 |
Pedro F. Giffuni <[email protected]> |
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier f
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
fbbd9655 |
| 28-Feb-2017 |
Warner Losh <[email protected]> |
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <[email protected]> Pull Request: https://github.com/freebsd/freebsd/pull/96
show more ...
|
|
Revision tags: release/11.0.1, release/11.0.0 |
|
| #
26e736b2 |
| 16-Apr-2016 |
Baptiste Daroussin <[email protected]> |
Directly set the O_CLOEXEC flags via the open(2) attributes
MFC after: 1 week
|
|
Revision tags: release/10.3.0 |
|
| #
66d93438 |
| 08-Mar-2016 |
Bryan Drewery <[email protected]> |
Record command exit status in the typescript file when running simple commands.
Also capitalize 'command:'.
Relnotes: yes MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
|
| #
95d13d1b |
| 08-Mar-2016 |
Bryan Drewery <[email protected]> |
Just exit in the child if execve(2) fails.
No functional change.
This is mostly addressing a false-positive from the clang static analyzer due to it thinking that done() was being called with freed
Just exit in the child if execve(2) fails.
No functional change.
This is mostly addressing a false-positive from the clang static analyzer due to it thinking that done() was being called with freed memory, however the kill(0, SIGTERM) made the done() never reached. It doesn't make sense to the show the footer from the child anyhow, nor does it make sense to kill the process group here since the execve(2) failed in the child. This code was leftover from many years of refactoring.
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
show more ...
|
| #
7b245cb8 |
| 08-Mar-2016 |
Bryan Drewery <[email protected]> |
Filemon: Attach from the child to avoid racing with the parent attach.
This is the same as how the bmake filemon usage works.
This also fixes failed attach not properly flushing the TTY.
MFC after
Filemon: Attach from the child to avoid racing with the parent attach.
This is the same as how the bmake filemon usage works.
This also fixes failed attach not properly flushing the TTY.
MFC after: 1 week Relnotes: yes Sponsored by: EMC / Isilon Storage Division
show more ...
|
|
Revision tags: release/10.2.0, release/10.1.0, release/9.3.0 |
|
| #
29f4384a |
| 17-Jan-2014 |
Mikolaj Golub <[email protected]> |
Bring back r226403, the fix for bin/161526, which was (accidentally?) reverted in r238896.
PR: bin/161526 Reported by: Karli.Sjoberg slu.se MFC after: 3 days
|
|
Revision tags: release/10.0.0 |
|
| #
8d105abc |
| 05-Dec-2013 |
Tom Rhodes <[email protected]> |
Add -F to flush output after each write. With this, I can set up a pipe and allow a jr user to watch what I'm doing by running 'script -F pipefile' on it.
While here, spell out the month in the .Dd
Add -F to flush output after each write. With this, I can set up a pipe and allow a jr user to watch what I'm doing by running 'script -F pipefile' on it.
While here, spell out the month in the .Dd tag like other manual pages.
show more ...
|