-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Milestone
Description
msteed@bones:~> fish --version
fish, version 2.7.0
msteed@bones:~> echo $version
2.7.0
msteed@bones:~> uname -a
Linux bones 4.13.12-1-ARCH #1 SMP PREEMPT Wed Nov 8 11:54:06 CET 2017 x86_64 GNU/Linux
msteed@bones:~> echo $TERM
tmux-256color
msteed@bones:~>
The problem:
msteed@bones:~> sh -c 'env HOME=$(mktemp -d) fish'
Welcome to fish, the friendly interactive shell
msteed@bones /h/msteed> cd
msteed@bones ~> mkdir -p a/b
msteed@bones ~> cd a/b
msteed@bones ~/a/b> cd
msteed@bones ~> cdh a<TAB>When I hit Tab, fish supplies this completion:
msteed@bones ~> cdh \~/a/bIf I accept that, fish (correctly) complains:
cd: The directory “~/a/b” does not existIf I hit Tab with an empty directory name, i.e., cdh <TAB>, fish lists the completions with the ~ characters escaped, but selecting a completion un-escapes the string so the command line is formatted correctly.
Edit: this may be the problem reported in #4566