File: script-command

package info (click to toggle)
btest 0.72-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,208 kB
  • sloc: python: 2,187; sh: 547; makefile: 165; xml: 12; awk: 1
file content (10 lines) | stat: -rwxr-xr-x 253 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
# This is a wrapper for the "script" command, which has different
# options depending on the OS.

if ! script -q -c ls /dev/null >/dev/null 2>&1; then
    # FreeBSD and macOS
    script -q /dev/null $@
else
    # Linux
    script -qfc "$@" /dev/null
fi