From 20b269130c4ef45d2c74e7562cdde87335f12c76 Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 19 Dec 2005 08:51:50 +1000 Subject: [PATCH] Yet another attempt to avoid gnuisms in sed/grep for ssh completions darcs-hash:20051218225150-ac50b-d2ec7c6b5c715a68dcc4f2d9d67636c70868da7d.gz --- init/completions/scp.fish | 2 +- init/completions/ssh.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init/completions/scp.fish b/init/completions/scp.fish index f763da7c7..61cd3fda0 100644 --- a/init/completions/scp.fish +++ b/init/completions/scp.fish @@ -17,7 +17,7 @@ complete -c scp -d Hostname -a " ( #Prepend any username specified in the completion to the hostname - echo (commandline -ct)|sed -nre 's/(.*@).*/\1/p' + echo (commandline -ct)|sed -ne 's/\(.*@\).*/\1/p' )( cat ~/.ssh/known_hosts{,2} ^/dev/null|cut -d ' ' -f 1| cut -d , -f 1 ): diff --git a/init/completions/ssh.fish b/init/completions/ssh.fish index 5cdccbb93..cf1260660 100644 --- a/init/completions/ssh.fish +++ b/init/completions/ssh.fish @@ -71,7 +71,7 @@ complete -x -c ssh -d Hostname -a " ( #Prepend any username specified in the completion to the hostname - echo (commandline -ct)|sed -nre 's/(.*@).*/\1/p' + echo (commandline -ct)|sed -ne 's/\(.*@\).*/\1/p' )(__fish_print_hostnames) (__fish_print_users)@