Skip to content

fix(scp,rsync): fix misc bugs and refactor #1371

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

Merged
merged 6 commits into from
Aug 9, 2025
Merged

Conversation

akinomyoga
Copy link
Collaborator

I separated small changes out of #1357. There are still eight commits, but I think they are mostly trivial fixes. If this is still too large as a PR, I'll further split the PR.

For these small changes, there are no ongoing discussions in #1357.

I'm thinking of separating the other non-trivial changes into PRs with smaller numbers of commits. I'll submit them after merging this PR.

These shellcheck directives were added in commit c906aeb (2020-04-10),
but the latest version of shellcheck-0.10.0 does not seem to warn
about SC2089 and SC2090 on these lines for the current version of
bash_completion.

These warnings seem to be issued when unquoted
$_comp_cmd_scp__path_esc is used, such as

    echo $_comp_cmd_scp__path_esc

We have already resolved those unquoted variable expansions, so the
warning should no longer happen.  In this patch, we remove those
outdated shellcheck directives.
pytest.skip cancels the execution of the current test, so "return" and
subsequent codes arex unreachable.  We do not need to explicitly call
"return" in this context.

scop#1357 (comment)
@akinomyoga akinomyoga changed the title [Waiting for #1398] fix(scp,rsync): fix misc bugs and refactor fix(scp,rsync): fix misc bugs and refactor Aug 3, 2025
@akinomyoga akinomyoga marked this pull request as ready for review August 3, 2025 12:54
Copy link
Owner

@scop scop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks like shellcheck 0.11.0 does not flag those either.

@scop scop merged commit 69c6a51 into scop:main Aug 9, 2025
7 checks passed
@akinomyoga akinomyoga deleted the scp-refactor-1 branch August 9, 2025 08:04
@akinomyoga
Copy link
Collaborator Author

Thank you!

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 this pull request may close these issues.

2 participants