diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-29 22:58:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-29 22:58:21 +0100 |
commit | 39536dd557e847e80572044c2be319db5886abe3 (patch) | |
tree | a9223044558edf150a07d0fde3f8259c0a655561 /src/testdir/test_channel.vim | |
parent | 2a4857a1fcf1d188e5b985ac21bcfc532eddde94 (diff) |
patch 8.1.0846: not easy to recognize the system Vim runs onv8.1.0846
Problem: Not easy to recognize the system Vim runs on.
Solution: Add more items to the features list. (Ozaki Kiichi, closes #3855)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index 7b0a917352..f81701a076 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -29,7 +29,7 @@ endfunc func s:get_resources() let pid = getpid() - if has('mac') + if executable('lsof') return systemlist('lsof -p ' . pid . ' | awk ''$4~/^[0-9]*[rwu]$/&&$5=="REG"{print$NF}''') elseif isdirectory('/proc/' . pid . '/fd/') return systemlist('readlink /proc/' . pid . '/fd/* | grep -v ''^/dev/''') |