[Bash-completion-devel] [bash-completion-Bugs][313514] ssh command completion failed
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Mon Feb 6 21:03:09 UTC 2012
Bugs item #313514, was changed at 2012-01-16 15:39 by Neville Gao
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313514&group_id=100114
Status: Pending
Priority: 3
Submitted By: Neville Gao (figod-guest)
Assigned to: Nobody (None)
Summary: ssh command completion failed
Distribution: Debian
Originally reported in: None
Milestone: None
Status: None
Original bug number:
Initial Comment:
I'm using Debian testing (Wheezy), bash-completion v1.3. When I type "ssh ", and then type TAB key, there's an error saying "sed: -e expression #1, char 97: invalid reference \2 on `s' command's RHS".
I think it is caused by some escaped backslash problems. I proposed a patch for reviewing in attached file.
----------------------------------------------------------------------
Comment By: Neville Gao (figod-guest)
Date: 2012-02-07 05:03
Message:
There's the error when I typed your command:
sed: -e expression #1, char 97: invalid reference \2 on `s' command's RHS
But when I typed patched command, things go well.
I'm using GNU sed 4.2.1-9, bash-completion 1:1.99-3
----------------------------------------------------------------------
Comment By: Igor Murzov (garik-guest)
Date: 2012-02-07 04:35
Message:
I still can't reproduce the error:
$ sed -ne 's/^[ \t]*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'\t '"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' config
test
www.example.org
----------------------------------------------------------------------
Comment By: Neville Gao (figod-guest)
Date: 2012-02-07 01:39
Message:
Here's my ~/.ssh/config file. I just updated to v1.99, and there's the same error
----------------------------------------------------------------------
Comment By: Igor Murzov (garik-guest)
Date: 2012-02-04 03:51
Message:
Not this file. It should be one of your /etc/ssh/ssh_config ~/.ssh/config ~/.ssh2/config. Anyway it's better to upgrade your bash-completion to 1.99 first and to check whether it works for you.
----------------------------------------------------------------------
Comment By: Neville Gao (figod-guest)
Date: 2012-02-03 11:55
Message:
I just attached my /etc/bash_completion file.
----------------------------------------------------------------------
Comment By: Igor Murzov (garik-guest)
Date: 2012-01-26 02:29
Message:
Can you attach file for which sed prints error message? This will help a lot. From your patch it's not clear what is the failure cause.
----------------------------------------------------------------------
Comment By: Neville Gao (figod-guest)
Date: 2012-01-21 11:14
Message:
I didn't test with version 1.99 yet. I just created this patch according to latest git repo. The codes is the same with version 1.3. I think it will cause the same problem in newer version.
----------------------------------------------------------------------
Comment By: Ville Skyttä (scop-guest)
Date: 2012-01-18 04:44
Message:
Please test with bash-completion 1.99 first.
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313514&group_id=100114
More information about the Bash-completion-devel
mailing list