On 11/15/26 8:28 PM, Diin Ferhatovic wrote:
Hi,I've noticed that Bash's native filename completion can produce an unusable cd command when a directory name begins with a hyphen. For example, given a directory named -example, typing cd -ex and pressing Tab produces: cd -example/ Executing it fails because cd interprets the directory name as an option. The expected behavior would be something like: cd ./-example/ I've reproduced this with programmable completion disabled (shopt -u progcomp), so it doesn't appear to be specific to bash-completion or fzf.
If you find yourself in this situation often, a simple modification to
either behavior (type ./-ex) or your `cd' programmable completion
specification would probably do the job.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
