16 Kasım 2026 Pazartesi tarihinde Diin Ferhatovic <[email protected]>
yazdı:

> 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 think this is what programmable completion is for. Or you can just type

cd -- -ex

and then press Tab.


-- 
Oğuz

Reply via email to