File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ _comp_cmd_mount()
44
44
host=${cur#// }
45
45
host=${host%%/* }
46
46
if [[ $host ]]; then
47
- _comp_compgen -c " ${cur #// " $host " } " split -P " // $host " -- " $(
47
+ _comp_compgen -P " // $host " split -- " $(
48
48
smbclient -d 0 -NL " $host " 2> /dev/null |
49
49
command sed -ne ' /^[[:blank:]]*Sharename/,/^$/p' |
50
50
command sed -ne ' 3,$s|^[^A-Za-z]*\([^[:blank:]]*\).*$|/\1|p'
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ _comp_cmd_mount()
231
231
host=${cur#// }
232
232
host=${host%%/* }
233
233
if [[ $host ]]; then
234
- _comp_compgen -c " ${cur #// " $host " } " split -P " // $host " -- " $(
234
+ _comp_compgen -P " // $host " split -- " $(
235
235
smbclient -d 0 -NL " $host " 2> /dev/null |
236
236
command sed -ne ' /^[[:blank:]]*Sharename/,/^$/p' |
237
237
command sed -ne ' 3,$s|^[^A-Za-z]*\([^[:blank:]]*\).*$|/\1|p'
You can’t perform that action at this time.
0 commit comments