[Bash-completion-devel] [bash-completion-Bugs][314393] _known_hosts_real does not complete hostnames starting with a 't'

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Mon Aug 19 16:06:58 UTC 2013


bash-completion-Bugs item #314393, was opened at 2013-08-19 18:06 by Rainer Müller
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314393&group_id=100114

Status: Open
Priority: 3
Submitted By: Rainer Müller (raimue-guest)
Assigned to: Nobody (None)
Summary: _known_hosts_real does not complete hostnames starting with a 't' 
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
There is a portability issue with a sed expression used in _known_hosts_real(). In BSD sed, the sequence '\t' does not represent a tab character, but it is recognized as a literal 't'. In Any hostname starting with a 't' was filtered on systems using BSD sed (in this case Mac OS X). GNU sed added '\t' as an extension and matches this as a tab character, which was intended here.

Attached is a patch that changes the occurrence in this sed expression to [[:space:]], which is less restrictive but should be okay in this context.

Original Report: http://trac.macports.org/ticket/32053

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314393&group_id=100114



More information about the Bash-completion-devel mailing list