Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14881 > unrolled thread
| Started by | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| First post | 2018-12-03 09:33 -0500 |
| Last post | 2018-12-03 09:33 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Incorrect path canonicalisation at autocompletion Chet Ramey <chet.ramey@case.edu> - 2018-12-03 09:33 -0500
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Date | 2018-12-03 09:33 -0500 |
| Subject | Re: Incorrect path canonicalisation at autocompletion |
| Message-ID | <mailman.5077.1543847651.1284.bug-bash@gnu.org> |
On 12/1/18 3:12 PM, Mattias Andrée wrote: > Using Bash 4.4.023, type > > cd > mkdir -p 1/2 > cd 1/2 > touch ../../3 > ln -s ~ 4 > touch 5 > ls 4/../ > > without pressing enter at the last line, > instead press <tab> twice. 4/ and 5 will > be suggested, but if you press <enter> > you will see that it should suggest the> files in /home. It's not a bug. Bash maintains a logical view of the file system and the current directory for cd, pwd, and $PWD, as Posix specifies. One of the consequences is that the pathname of the current directory depends on the path used to reach it, which affects how bash canonicalizes `..'. Bash is consistent in its use of this logical view across shell features, which includes completion. If you want to see a physical view of the file system, use `set -o physical'. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to top | Article view | gnu.bash.bug
csiph-web