summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_script
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@fairlystable.org>2025-04-30 02:07:56 -0700
committerJoe Rayhawk <jrayhawk@fairlystable.org>2025-04-30 02:07:56 -0700
commit26e09889646be3ea65b4a3dfeda26213e4bb6a27 (patch)
tree4f3c73a9416bf47ad7e125383d23cf42879e38d7 /Completion/Unix/Command/_script
parent841bce705a58b04220b1f257abcc00ae71cbdbdc (diff)
parent001cba48ce3b964cf01fb3e2af54b20eacbc9bf5 (diff)
downloadzsh-26e09889646be3ea65b4a3dfeda26213e4bb6a27.tar.gz
zsh-26e09889646be3ea65b4a3dfeda26213e4bb6a27.zip
Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Unix/Command/_script')
-rw-r--r--Completion/Unix/Command/_script17
1 files changed, 13 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_script b/Completion/Unix/Command/_script
index 7a3960be0..25f8ea35f 100644
--- a/Completion/Unix/Command/_script
+++ b/Completion/Unix/Command/_script
@@ -47,7 +47,12 @@ case $OSTYPE in
'-q[be quiet: suppress display of starting and ending lines]'
'(-a -r -k)-d[suppress sleeps when playing back a session]'
'(-a -r -k -t)-p[play back a recorded session]'
- '(-d -p)-r[record a session with input, output and timing data]'
+ '(-d -p -T)-r[record a session with input, output and timing data]'
+ )
+ ;|
+ darwin*|netbsd*|freebsd*)
+ args+=(
+ '-e[return exit status of the child process]'
)
;|
netbsd*|openbsd*)
@@ -55,12 +60,18 @@ case $OSTYPE in
'-c[run specified command instead of a shell]:command:_cmdstring'
)
;|
+ darwin*|freebsd*)
+ args+=(
+ '(-a -r -k -t)-T[play back a recorded session, reporting only timestamps]: :_date_formats'
+ )
+ ;|
netbsd*)
args+=( '-f[flush output after each write]' )
;|
freebsd*)
args+=(
'-f[use filemon(4)]'
+ '-w[forward terminal size changes on SIGWINCH]'
)
;|
darwin*|dragonfly*|freebsd*)
@@ -68,11 +79,9 @@ case $OSTYPE in
'-F[send output to specified named pipe]:fifo:_files -g "*(p)"'
'-t+[specify interval of data flushing]:interval (seconds)'
'-k[log keys sent to the program as well as output]'
- '*:::arguments: _normal'
+ '*:::arguments: _normal $service'
)
;|
- darwin*|freebsd*)
- ;|
*)
args+=(
'(-p -d)-a[append output]'