Debian Codegraph @

testing/Scripts/script-command

raw
1 # This is a wrapper for the "script" command, which has different
2 # options depending on the OS.
3
4 if ! script -q -c ls /dev/null >/dev/null 2>&1; then
5 # FreeBSD and macOS
6 script -q /dev/null $@
7 else
8 # Linux
9 script -qfc "$@" /dev/null
10 fi