Skip to content
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

fix(scp): keep tilde in local paths by using _filedir instead of _expand #765

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 3, 2022

  1. fix(scp): keep tilde in local paths by using _filedir instead of _expand

    Do not replace `~` by `/home/user/` for local files to get behavior
    consistent with other tools like `ls`. Previous variant of candidates
    generating using `ls` is slightly modified to match literal tilde
    after a prefix like in `-F~configfile`.
    
    Earlier attempt to suppress `_expand` of tilde for whole bash completion
    [Debian #521406. bash-completion: leading tilde always expanded](https://bugs.debian.org/521406)
    was reverted since it broke tilde completion for `scp`
    [Ville Skyttä \[Bash-completion-devel\] `_expand`, scp and quoting](https://alioth-lists-archive.debian.net/pipermail/bash-completion-devel/2009-February/000973.html)
    maxnikulin committed Jul 3, 2022
    Configuration menu
    Copy the full SHA
    c555c90 View commit details
    Browse the repository at this point in the history