On 11/12/2005 at 13:16 +0100, Kiko Piris wrote:

> This simple patch fixes the sed error you get when completing a ssh
> command:

The patch I sent initially contains an unnecessary correction.

I think this one is correct:

---8<---
--- /etc/bash_completion~       2005-12-10 01:03:54.000000000 +0100
+++ /etc/bash_completion        2005-12-11 13:18:13.000000000 +0100
@@ -2475,7 +2475,7 @@
            fi
            # append any available aliases from config files
            if [ [EMAIL PROTECTED] -gt 0 ] && [ -n "$aliases" ]; then
-               hosts=$( compgen -W "$( sed -ne "s/^[Hh][Oo][Ss][Tt]["$'\t 
'"]*\([^*?]*\)$/\1/p" [EMAIL PROTECTED] )" -- $ocur )
+               hosts=$( compgen -W "$( sed -ne "s/^[Hh][Oo][Ss][Tt][\"$'\t 
'\"]*\([^*?]*\)$/\1/p" [EMAIL PROTECTED] )" -- $ocur )
                COMPREPLY=( [EMAIL PROTECTED] $hosts )
            fi
 
--->8---

Sorry for the noise...

-- 
Kiko
Private mail is preferred encrypted:
http://www.pirispons.net/pgpkey.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to