find_modules: replace $(cmd) with backticks, more portable
authorMarko Kreen <markokr@gmail.com>
Sun, 20 Mar 2011 19:12:54 +0000 (21:12 +0200)
committerMarko Kreen <markokr@gmail.com>
Sun, 20 Mar 2011 19:12:54 +0000 (21:12 +0200)
find_modules.sh

index 839f5bc0b333b0f2797828c0eb6f09653c3cee08..94b6c1e07bb97a98a0bcdfe5d8dab379ddca80dc 100755 (executable)
@@ -39,10 +39,11 @@ make_pats() {
 
 # loop over grep until all mods are found
 m_done=""
-m_tocheck=$(grep_usual "$@")
+m_tocheck=`grep_usual "$@"`
 while test -n "$m_tocheck"; do
   m_done="$m_done $m_tocheck"
-  m_tocheck=$(grep_usual $(make_pats $m_tocheck))
+  pats=`make_pats $m_tocheck`
+  m_tocheck=`grep_usual $pats`
 done
 
 # done