From 2bd556e744463c09556c3579f7100e46600bd5c3 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 23 Jul 2005 14:23:38 +0000 Subject: 21506: use globbing instead of ls and sed. --- Completion/Unix/Command/_rubber | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion/Unix/Command/_rubber') diff --git a/Completion/Unix/Command/_rubber b/Completion/Unix/Command/_rubber index 91c220b41..611425636 100644 --- a/Completion/Unix/Command/_rubber +++ b/Completion/Unix/Command/_rubber @@ -5,12 +5,12 @@ local _rubber_version _rubber_path _rubber_modules _rubber_args eval $(rubber --version | sed 's/^.* \([^ ]*\): */_rubber_\1=/') if [[ ${_rubber_version#0} != $_rubber_version ]]; then _rubber_modules=( - $(ls $_rubber_path/rubber/modules | sed -n 's/^\([^_].*\)\.py$/\1/p') + $_rubber_path/rubber/modules/[^_]*.py(N:r:t) ) else _rubber_modules=( - $(ls $_rubber_path/modules | sed -n 's/.rub$//p') - $(ls $_rubber_path/rubber/rules/latex | sed -n 's/^\([^_].*\)\.py$/\1/p') + $_rubber_path/modules/*.rub(N:r:t) + $_rubber_path/rubber/rules/latex/[^_]*.py(N:r:t) ) fi -- cgit 1.4.1