The fix for bug 1387057 (correctly quoting $quoted) also fixes this.
$ compgen -f "1\'2"
1'2 2
@wojtas: completion inside $(command substitutions) is a separate bug. Fixing the quoting bug didn't solve that. I see you already commented in bug 1312243, which is what you're seeing.
The fix for bug 1387057 (correctly quoting $quoted) also fixes this.
$ compgen -f "1\'2"
1'2 2
@wojtas: completion inside $(command substitutions) is a separate bug. Fixing the quoting bug didn't solve that. I see you already commented in bug 1312243, which is what you're seeing.