Fix glob expansion preceeded with variable
The pattern $var/*
is split into a variable and a glob part, but after expansion the variable wasn't concatenated with the original glob pattern. This resulted in /*
being expanded instead of value/*
pattern.
This is fixed by concatenating the last word in the expanded string with the glob pattern except if there's a separating whitespace character between them (i.e.: value\t/*
).
Fixes #836 (closed)
Edited by Roland Kovács