vardepend() currently handles unbraced variable references by reading up to the next whitespace. This causes $FOO$BAR to be interpreted as one variable named FOO$BAR instead of two named FOO and BAR. It also fails if an unbraced variable is at the end of a line.
Created attachment 24363 [details, diff] More support for unbraced variables Variable names are identified by reading up until the first invalid character or end-of-string. This patch will also cause vardepend to return "" on invalid braced var names instead of substituting "".
s/vardepend/varexpand/ ^^
Created attachment 24364 [details, diff] Same as first one except with diff -u instead of plain diff
supposed to be fixed in 2.0.50 which is stable now. If this bug is not fixed please reopen.