From d2b19a112f36d311c3edfb20ec239fe69a2b3d50 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Sun, 20 Mar 2011 21:12:54 +0200 Subject: [PATCH] find_modules: replace $(cmd) with backticks, more portable --- find_modules.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/find_modules.sh b/find_modules.sh index 839f5bc..94b6c1e 100755 --- a/find_modules.sh +++ b/find_modules.sh @@ -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 -- 2.39.5