When $arg is a normal string, treat it as shell-quoted. But still treat expanded args as plain strings, otherwise it breaks for filenames with spaces
This commit is contained in:
@@ -166,7 +166,7 @@ git_expand_args() {
|
||||
else
|
||||
echo -n " "
|
||||
fi
|
||||
printf '%s' "$arg"
|
||||
printf '%q' "$arg"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user