bash-completion-Bugs item #314533 was changed at 2014-06-25 13:38 by Neville Gao
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314533&group_id=100114

Status: Open
Priority: 3
Submitted By: Neville Gao (figod-guest)
Assigned to: Nobody (None)
Summary: SSH Completion Failed 
Distribution: Debian
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
Following message[1] appears when I type 'ssh <TAB>' every time. I attached my 
.ssh/config and proposal patch.

[1] sed: -e expression #1, char 97: invalid reference \2 on `s' command's RHS

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

Comment By: Neville Gao (figod-guest)
Date: 2014-06-25 13:38

Message:
I'm using sed 4.2.2

I ran the following single command from bash:
sed -ne 's/^[ \t]*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'\t 
'"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}"

It said the errors.

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

Comment By: Ville Skyttä  (scop-guest)
Date: 2013-12-07 06:05

Message:
I cannot reproduce, I get no errors when I complete with your config, so more 
details are needed.

Looking at the patch, I'm confused; are you sure you got it the right way? 
Turning \{0,1\} into ? and \{1,\} into + is introducing a sed portability 
issue, and removing the backslash from front of ( and ) actually *introduces* 
the "invalid reference \2" errors you're seeing as the unescaped parenthesis 
are no longer capturing groups...?

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

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

_______________________________________________
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel

Reply via email to