All positional arguments are overridden if user pass at least one of them

This commit is contained in:
oblique 2015-05-17 19:08:18 +03:00
parent 92d35c0da3
commit ce8d4c9ee5

View File

@ -1013,7 +1013,7 @@ while :; do
done done
# Load positional args from config file, if needed # Load positional args from config file, if needed
if [[ -n "$LOAD_CONFIG" ]]; then if [[ -n "$LOAD_CONFIG" && $# -eq 0 ]]; then
for ((i=$# + 1; i<=${#LOADED_ARGS[@]}; i++)); do for ((i=$# + 1; i<=${#LOADED_ARGS[@]}; i++)); do
((j=i-1)) ((j=i-1))
((k=i+1)) ((k=i+1))