mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
ZTS: Interpret env vars in faketty on FreeBSD
This was missed in review. On FreeBSD, script does not understand environment variables being passed as a command. Use env to make faketty handle env vars on FreeBSD. Reviewed-by: Igor Kozhukhov <igor@dilos.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #9981
This commit is contained in:
parent
9c536b9a78
commit
834f274fbf
@ -114,6 +114,7 @@ export SYSTEM_FILES_COMMON='arp
|
||||
export SYSTEM_FILES_FREEBSD='chflags
|
||||
compress
|
||||
dumpon
|
||||
env
|
||||
fsck
|
||||
getextattr
|
||||
gpart
|
||||
|
@ -3970,7 +3970,7 @@ function stat_size #<path>
|
||||
function faketty
|
||||
{
|
||||
if is_freebsd; then
|
||||
script -q /dev/null "$@"
|
||||
script -q /dev/null env "$@"
|
||||
else
|
||||
script --return --quiet -c "$*" /dev/null
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user