Commit b85b88e
committed
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`. I hope, dropping `_expand` and
adding `_filedir` to have file name completion will not cause issues like
[Ville Skyttä \[Bash-completion-devel\] `_expand`, scp and quoting](https://alioth-lists-archive.debian.net/pipermail/bash-completion-devel/2009-February/000973.html)
when a patch intended to fix
[Debian #521406. bash-completion: leading tilde always expanded](https://bugs.debian.org/521406)
was reverted.1 parent 730368b commit b85b88e
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
561 | | - | |
562 | 560 | | |
563 | 561 | | |
564 | 562 | | |
| |||
581 | 579 | | |
582 | 580 | | |
583 | 581 | | |
584 | | - | |
| 582 | + | |
| 583 | + | |
585 | 584 | | |
586 | 585 | | |
587 | 586 | | |
| |||
0 commit comments