With the attached patch bash completion for the scp command also escapes single quote characters "'" by matching the sed hex perlre escape for it "\x27". Not sure how portable this sed syntax is but it works for Fedora's sed. Also sent to the upstream author.
Created attachment 142081 [details] scp single quote escape
Have you heard back from upstream?
Nope. I did resent it today as it might have ended in a spamtrap or something... If there is no answer I won't try any more.
Created attachment 144368 [details] Probably more portable approach Here's a less pretty and efficient, but probably more portable approach.
Patch from comment 4 applied in soon-to-appear 20060301-3 for FC-6+.