Bug 217178 - [PATCH] Escape single quotes in scp completion
Summary: [PATCH] Escape single quotes in scp completion
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: bash-completion
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-24 17:37 UTC by Yanko Kaneti
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 20060301-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-02-27 23:40:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
scp single quote escape (918 bytes, patch)
2006-11-24 17:37 UTC, Yanko Kaneti
no flags Details | Diff
Probably more portable approach (650 bytes, patch)
2006-12-26 12:09 UTC, Ville Skyttä
no flags Details | Diff

Description Yanko Kaneti 2006-11-24 17:37:30 UTC
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.

Comment 1 Yanko Kaneti 2006-11-24 17:37:32 UTC
Created attachment 142081 [details]
scp single quote escape

Comment 2 Ville Skyttä 2006-12-07 19:17:38 UTC
Have you heard back from upstream?

Comment 3 Yanko Kaneti 2006-12-07 19:51:03 UTC
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.


Comment 4 Ville Skyttä 2006-12-26 12:09:26 UTC
Created attachment 144368 [details]
Probably more portable approach

Here's a less pretty and efficient, but probably more portable approach.

Comment 5 Ville Skyttä 2007-02-27 23:40:10 UTC
Patch from comment 4 applied in soon-to-appear 20060301-3 for FC-6+.


Note You need to log in before you can comment on or make changes to this bug.