From 81668b3f86214acece2dce80bc32c1458692f883 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 9 Mar 2020 16:54:07 +0100 Subject: [PATCH] completions: fix scp remote path when /bin/ls does not exist --- share/completions/scp.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/scp.fish b/share/completions/scp.fish index 41a659906..5754b0933 100644 --- a/share/completions/scp.fish +++ b/share/completions/scp.fish @@ -54,7 +54,7 @@ complete -c scp -d "Local Path" -n "not string match @ -- (commandline -ct)" # Get the list of remote files from the scp target. complete -c scp -d "Remote Path" -f -n "commandline -ct | string match -e ':'" -a " (__scp_remote_target):( \ - command ssh (__scp2ssh_port_number) -o 'BatchMode yes' (__scp_remote_target) /bin/ls\ -dp\ (__scp_remote_path_prefix | string unescape)\* 2>/dev/null | + command ssh (__scp2ssh_port_number) -o 'BatchMode yes' (__scp_remote_target) ls\ -dp\ (__scp_remote_path_prefix | string unescape)\* 2>/dev/null | string escape -n ) "