Sample Header Ad - 728x90

Is it standard behaviour for cd to automatically choose when given an incomplete directory name?

17 votes
1 answer
706 views
I have three folders called ProjectA, ProjectB and ProjectC. When I tab-complete cd to cd Project and press Enter, it chooses ProjectC. I've found this is also the case with other similar cases; it defaults to the last in lexicographic order (but this may also be most recently changed/added). Is this expected default behaviour for cd, or have I set something by accident here? I'm running OSX 10.10.3, with bash 4.3.
Asked by Rob Holt (173 rep)
May 26, 2015, 06:00 AM
Last activity: May 26, 2015, 06:30 AM