Hide Forgot
Description of problem: file path completion gives incorrect results when path contains symlink Version-Release number of selected component (if applicable): bash-4.2.45-1.fc19.x86_64 How reproducible: always Steps to Reproduce: 1.prepare environment $ mkdir foo bar $ ln -s ../foo bar/foo $ touch abcd foo/abfoo bar/abbar 2.try it $ cd bar/foo I) $ file ../ab<TAB> -> $ file ../abbar -> ../abbar: ERROR: cannot open `../abbar' (No such file or directory) Error is correct, such file does not exist II) $ file ../abc<TAB> -> $ file ../abc - no completion, but ../abcd exists $ file ../abcd ../abcd: empty Actual results: tab completion does not see some files and completes name to nonexistent files Expected results: tab completion working with symlinks Additional info: It works in both ksh and mksh
Thanks for the report. This is an expected behaviour of bash. The behaviour you specified can be achieved by using 'set -o physical'.