From 72ef38722dd2fe55e05704d789cb23b00579453b Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 10 Mar 2007 21:40:39 +0000 Subject: [PATCH] whoops, need to turn off globbing, or ALLOW * doesn't do what it is supposed to --- scripts/tools/fg-submit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/tools/fg-submit b/scripts/tools/fg-submit index fb550c99a..e768a13ba 100755 --- a/scripts/tools/fg-submit +++ b/scripts/tools/fg-submit @@ -64,7 +64,7 @@ # in its parent directory, in its grand-parent directory and so on, # and finally in the $HOME directory. The first found file is taken. # -# A file can use a list of four keywords with arguments, each on a +# A file can use a list of three keywords with arguments, each on a # separate line: # # ALLOW ... accept & report matching file @@ -223,13 +223,14 @@ function search_config { CONFIG="$file" return 0 elif [ "$1" ]; then - search_config ${1%/${1/#*\/}} # parent dir + search_config ${1%/${1##*/}} # parent dir return fi return 1 } +set -f RULES= if search_config "$PWD"; then LOG "loading config file $CONFIG" @@ -241,6 +242,7 @@ elif [ -f ~/${CONFIG_FILE}rc ]; then DEBUG "loading config file $CONFIG" source ~/${CONFIG_FILE}rc fi +set +f RULES="$PREFIX_RULES $RULES $DEFAULT_RULES $POSTFIX_RULES"