From d2e3e816b6066e5f8dd9a0f180ae82d046b68244 Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Mon, 26 Oct 2020 19:51:17 +0100 Subject: T3020: Correct scp completion hint "scp" needs to get a ":" between the remote host and the remote path. Let's reflect it in the completion order to avoid confusion. The doc has been updated with vyos/vyos-documentation#354 --- etc/bash_completion.d/vyatta-cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index 7547099..cc72d43 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -198,7 +198,7 @@ vyatta_loadsave_complete() if [ "$command" = "load" ]; then echo -e " \t\t\t\t\tLoad from system config file" echo -e " \t\t\t\t\tLoad from file on local machine" - echo -e " scp://[:]@/\t\tLoad from file on remote machine" + echo -e " scp://[:]@:/\t\tLoad from file on remote machine" echo -e " sftp://[:]@/\tLoad from file on remote machine" echo -e " http:///\t\t\t\tLoad from file on remote machine" echo -e " https:///\t\t\t\tLoad from file on remote machine" @@ -206,7 +206,7 @@ vyatta_loadsave_complete() echo -e " tftp:///\t\t\t\tLoad from file on remote machine" elif [ "$command" = "merge" ]; then echo -e " \t\t\t\t\tMerge from file on local machine" - echo -e " scp://[:]@/\t\tMerge from file on remote machine" + echo -e " scp://[:]@:/\t\tMerge from file on remote machine" echo -e " sftp://[:]@/\tMerge from file on remote machine" echo -e " http:///\t\t\t\tMerge from file on remote machine" echo -e " https:///\t\t\t\tMerge from file on remote machine" @@ -215,7 +215,7 @@ vyatta_loadsave_complete() elif [ "$command" = "save" ]; then echo -e " \t\t\t\tSave to system config file" echo -e " \t\t\t\tSave to file on local machine" - echo -e " scp://:@/\tSave to file on remote machine" + echo -e " scp://:@:/\tSave to file on remote machine" echo -e " sftp://:@/\tSave to file on remote machine" echo -e " ftp://:@/\tSave to file on remote machine" echo -e " tftp:///\t\t\tSave to file on remote machine" @@ -265,7 +265,7 @@ vyatta_loadkey_complete() echo echo "Possible completions:" echo -e " \t\t\t\tLoad from file on local machine" - echo -e " scp://@/\tLoad from file on remote machine" + echo -e " scp://@:/\tLoad from file on remote machine" echo -e " sftp://@/\tLoad from file on remote machine" echo -e " ftp://@/\tLoad from file on remote machine" echo -e " http:///\t\t\tLoad from file on remote machine" -- cgit v1.2.3