Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: fallout from 37689 and 39949, completing ~-/<tab> broken when no OLDPWD



On Dec 1, 10:38am, Mikael Magnusson wrote:
} Subject: fallout from 37689 and 39949, completing ~-/<tab> broken when no 
}
} Prior to 37689 it worked fine (completing files in the current
} directory), after that commit it completed nothing, after 39949 it
} started instead printing
} _path_files:309: no such user or named directory: -

Hmm.  I still have the completes-nothing behavior.  Fragment of trace:

        +_path_files:277> [[ '~' = \~ && '' = (|`) ]]
        +_path_files:286> linepath=- 
        +_path_files:287> [[ -z - ]]
        +_path_files:289> [[ - = ([-+]|)[0-9]## ]]
        +_path_files:308> [[ - = [-+] ]]
        +_path_files:309> realpath='~-/' 
        +_path_files:317> linepath='~-/' 
        +_path_files:318> [[ '~-/' = \~-/ ]]
        +_path_files:318> return 1


}  % a='~-/'; echo $~a
}  zsh: no such user or named directory: -

That, however, I can reproduce.



Messages sorted by: Reverse Date, Date, Thread, Author