/
githubmirror
/
lsof
Обзор
Документация
Войти
/
githubmirror
/
lsof
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.96.2
tests/case-20-offset-field.bash
24 строки
327 B
Masatake YAMATO
test case: chmod a+x
10 ноя 2020, 19:05
10 ноя 2020, 19:05
330dee7
Код
Авторство
О чём код?
name=$(basename $0 .bash) lsof=$1 report=$2 base=$(pwd) t=/tmp/lsof-test-reg-file-$$ p=/tmp/lsof-test-reg-fifo-$$ mkfifo $p { printf "%d" 1 read < $p & } | cat > $t & r=1 if [ "$($lsof -Fo $t | grep '^o')" = o0t1 ]; then echo > $p r=0 fi rm /tmp/lsof-test-reg-file-$$ rm /tmp/lsof-test-reg-fifo-$$ exit $r