wellle / tmux-complete.vim

Vim plugin for insert mode completion of words in adjacent tmux panes
MIT License
515 stars 21 forks source link

63 Avoid bashism in shell script for compatibility #64

Closed wellle closed 8 years ago

wellle commented 8 years ago

Close #63

wellle commented 8 years ago

@justinmk: Thanks for your help!

I installed dash locally to test for POSIX compatibility. I managed to reproduce the issue on master and tried your suggestions. The bashism &> was indeed the issue, and using 2>&1 instead solved it. I had to put it after > /dev/null though to properly redirect stderr, see: http://unix.stackexchange.com/a/80632

I also found that != is in fact POSIX compliant, see: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html