> printf "%q\n" works fine here.

It does here too :), I misunderstood the syntax.

> Also, grep "${cur}" could probably be replaced by -path "*/${cur}*".

Indeed it can.

Smaller = better, thanks!

/Mathias

Reply via email to