Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 883034 Details for
Bug 1071700
tab completion doesn't complete regular files with ~ shortcut
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Bash-4.3 fix #1
00-fix_quote_readline_by_ref.patch (text/plain), 1.63 KB, created by
Vallimar
on 2014-04-05 12:42:06 UTC
(
hide
)
Description:
Bash-4.3 fix #1
Filename:
MIME Type:
Creator:
Vallimar
Created:
2014-04-05 12:42:06 UTC
Size:
1.63 KB
patch
obsolete
>From: JuanJo Ciarlante <jjo@canonical.com> >Subject: fix _quote_readline_by_ref to: > - avoid escaping 1st '~' (lp: #1288314) > - avoid quoting if empty, else expansion without args only shows dirs > (lp: #1288031) > - replace double escaping to single (eg for completing file/paths with > spaces) >Origin: vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739835 >Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739835 >Forwarded: yes, <5328F418.100@canonical.com> > >--- > bash_completion | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > >--- bash-completion.orig/bash_completion >+++ bash-completion/bash_completion >@@ -536,13 +536,24 @@ __ltrim_colon_completions() > # @param $2 Name of variable to return result to > _quote_readline_by_ref() > { >- if [[ $1 == \'* ]]; then >+ if [ -z "$1" ]; then >+ # avoid quoting if empty >+ printf -v $2 %s "$1" >+ elif [[ $1 == \'* ]]; then > # Leave out first character > printf -v $2 %s "${1:1}" >+ elif [[ $1 == ~* ]]; then >+ # avoid escaping first ~ >+ printf -v $2 ~%q "${1:1}" > else > printf -v $2 %q "$1" > fi > >+ # Replace double escaping ( \\ ) by single ( \ ) >+ # This happens always when argument is already escaped at cmdline, >+ # and passed to this function as e.g.: file\ with\ spaces >+ [[ ${!2} == *\\* ]] && printf -v $2 %s "${1//\\\\/\\}" >+ > # If result becomes quoted like this: $'string', re-evaluate in order to > # drop the additional quoting. See also: http://www.mail-archive.com/ > # bash-completion-devel@lists.alioth.debian.org/msg01942.html
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1071700
: 883034 |
883035