Skip to content

SCP "Is a Directory" #817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks
Poil opened this issue Sep 12, 2022 · 0 comments · Fixed by #818
Closed
3 tasks

SCP "Is a Directory" #817

Poil opened this issue Sep 12, 2022 · 0 comments · Fixed by #818

Comments

@Poil
Copy link

Poil commented Sep 12, 2022

Describe the bug

When using completion on scp -r something/ tabtab got this error

++ command sed -ne 's/^[[:blank:]]*[Hh][Oo][Ss][Tt][[:blank:]]\(.*\)$/\1/p' /etc/ssh/ssh_config /home/xxxx/.ssh/config /home/xxxx/.ssh/xxxx.ssh-config/xxxx/config /home/xxxx/.ssh/xxxx.ssh-config/xxxx-xxxx/config /home/xxxx/.ssh/xxxx.ssh-config/team-xxxx/config /home/xxxx/.ssh/xxxx.ssh-config/team-xxxx/config /home/xxxx/.ssh/xxxx.ssh-config/team-xxxx/config /home/bdupuis/.ssh/xxxx.ssh-config/team-xxxx/config /home/xxxx/.ssh/local/config /home/xxxx/.ssh/local
sed: read error on /home/xxxx/.ssh/local: Is a directory

To reproduce

  1. Create configuration folders in .ssh
  2. scp -r something_in_your_home_folder tabtab # note that scp -r ~/something_in_your_home doesn't bug

Expected behavior

No error message

Versions (please complete the following information)

  • Operating system name/distribution and version:
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy
  • bash version, echo "$BASH_VERSION": 5.1.16(1)-release
  • bash-completion version, (IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}"): 2.11

Additional context

Debug trace

++ command sed -ne 's/^[[:blank:]]*[Hh][Oo][Ss][Tt][[:blank:]]\(.*\)$/\1/p' /etc/ssh/ssh_config /home/xxxx/.ssh/config /home/xxxx/.ssh/xxxx.ssh-config/xxxx/config /home/xxxx/.ssh/xxxx.ssh-config/xxxx-xxxx/config /home/xxxx/.ssh/xxxx.ssh-config/team-xxxx/config /home/xxxx/.ssh/xxxx.ssh-config/team-xxxx/config /home/xxxx/.ssh/xxxx.ssh-config/team-xxxx/config /home/bdupuis/.ssh/xxxx.ssh-config/team-xxxx/config /home/xxxx/.ssh/local/config /home/xxxx/.ssh/local
sed: read error on /home/xxxx/.ssh/local: Is a directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant