[PATCH] Avoid bashisms and switch to /bin/sh

Ed Maste emaste at freebsd.org
Tue Oct 7 12:43:15 PDT 2014


Bash may not be installed on FreeBSD.  Apply minor changes to make this script work with /bin/sh:

  - `[ ]` and `=` in tests instead of `[[ ]]` and `==`
  - Manually expand {a,b} brace lists

I was a little surprised to find brace expansion is not POSIX.

A related bash-to-sh change is in http://reviews.llvm.org/D5631

http://reviews.llvm.org/D5654

Files:
  lib/sanitizer_common/scripts/check_lint.sh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5654.14527.patch
Type: text/x-patch
Size: 3512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141007/34802582/attachment.bin>


More information about the llvm-commits mailing list