Merge pull request #5088 from practicalswift/gardening-20161001

[gardening] Use $(…) instead of legacy `…`. Typo fixes. Add file to .pep8
diff --git a/.pep8 b/.pep8
index 46aa362..13fadb1 100644
--- a/.pep8
+++ b/.pep8
@@ -1,2 +1,2 @@
 [flake8]
-filename = *.py,80+-check,backtrace-check,Benchmark_Driver,Benchmark_DTrace.in,Benchmark_GuardMalloc.in,Benchmark_RuntimeLeaksRunner.in,build-script,check-incremental,clang++,coverage-build-db,coverage-generate-data,coverage-touch-tests,gyb,ld,line-directive,mock-distcc,ns-html2rst,PathSanitizingFileCheck,recursive-lipo,rth,run-test,submit-benchmark-results,update-checkout,viewcfg,symbolicate-linux-fatal
+filename = *.py,80+-check,backtrace-check,Benchmark_Driver,Benchmark_DTrace.in,Benchmark_GuardMalloc.in,Benchmark_RuntimeLeaksRunner.in,build-script,check-incremental,clang++,coverage-build-db,coverage-generate-data,coverage-query-db,coverage-touch-tests,gyb,ld,line-directive,mock-distcc,ns-html2rst,PathSanitizingFileCheck,recursive-lipo,rth,run-test,submit-benchmark-results,update-checkout,viewcfg,symbolicate-linux-fatal
diff --git a/docs/Driver.md b/docs/Driver.md
index 9b1c255..ab21873 100644
--- a/docs/Driver.md
+++ b/docs/Driver.md
@@ -230,7 +230,7 @@
 possible that the driver will start off assuming that some file won't need to
 be recompiled, and then discover later on that it should be. This means that
 it's not possible to use classic build models like Makefiles to make builds
-incremental, because Makefiles don't accomodate dependency graph changes during
+incremental, because Makefiles don't accommodate dependency graph changes during
 the build.
 
 Only the "frontend" tasks are considered skippable; module-merging and linking
diff --git a/test/IRGen/extension_type_metadata_linking.swift b/test/IRGen/extension_type_metadata_linking.swift
index 3646f08..3373458 100644
--- a/test/IRGen/extension_type_metadata_linking.swift
+++ b/test/IRGen/extension_type_metadata_linking.swift
@@ -7,8 +7,8 @@
 
 // Check that type metadata defined inside extensions of files imported from
 // other modules is emitted properly and there no linking errors.
-// In particular, it shoud be possible to define types inside extensions of
-// types importted from Foundation (rdar://problem/27245620).
+// In particular, it should be possible to define types inside extensions of
+// types imported from Foundation (rdar://problem/27245620).
 
 import Foundation
 
diff --git a/utils/find-overlay-dependencies-loop.sh b/utils/find-overlay-dependencies-loop.sh
index cc5e8a02..68cd4a6 100755
--- a/utils/find-overlay-dependencies-loop.sh
+++ b/utils/find-overlay-dependencies-loop.sh
@@ -29,7 +29,7 @@
 
 # Don't update XCTest, handle spaces in directories
 for f in ./stdlib/public/SDK/*/; do
-  name=`basename "${f}"`
+  name=$(basename "${f}")
   if [[ "${name}" == "XCTest" ]]; then
     continue
   fi