Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14882
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Mattias Andrée <maandree@kth.se> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: Incorrect path canonicalisation at autocompletion |
| Date | Mon, 3 Dec 2018 15:49:08 +0100 |
| Lines | 33 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.5078.1543848561.1284.bug-bash@gnu.org> (permalink) |
| References | <20181201211249.7979d994.maandree@kth.se> <e1be40d1-3245-bf32-cbe8-a7ec1e75263b@case.edu> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | usenet.stanford.edu 1543848561 32627 208.118.235.17 (3 Dec 2018 14:49:21 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | <bug-bash@gnu.org> |
| To | Chet Ramey <chet.ramey@case.edu> |
| Envelope-to | bug-bash@gnu.org |
| X-Virus-Scanned | by amavisd-new at kth.se |
| X-KTH-Auth | maandree [81.228.219.220] |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=kth.se; s=default; t=1543848549; bh=mBxO4jKukltbeF9ren9z1MQUonEIbJ8f1Ive8x+9Vsw=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=BZ1I8mrX5Zs1Dwy7q+/Pm1CXD1KGMxMMBxN7/wBM9jI72Q8YgT6atozF6T4xoG0vl ZftZZJtRwyjGTgI/y7nxswYT97ih3jopqBStWR2XSry2bbdCkyDsm10oQAccVat/9T eJFxI0tFU6jX+CCgD9VuC8LFKC3LkCnq1JFelP6A= |
| X-KTH-mail-from | maandree@kth.se |
| In-Reply-To | <e1be40d1-3245-bf32-cbe8-a7ec1e75263b@case.edu> |
| X-Mailer | Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) |
| X-Awesomeness | 120 % |
| User-Agent | Claws Mail |
| X-Operating-System | GNU/Linux |
| X-Clacks-Overhead | GNU Terry Pratchett |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 3.x |
| X-Received-From | 2001:6b0:1:1300:250:56ff:fea6:2de2 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash/> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:14882 |
Show key headers only | View raw
On Mon, 3 Dec 2018 09:33:48 -0500 Chet Ramey <chet.ramey@case.edu> wrote: > 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'. > Is there a way to only get physical view for completion but logical view for cd, pwd, and $PWD?
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Incorrect path canonicalisation at autocompletion Mattias Andrée <maandree@kth.se> - 2018-12-03 15:49 +0100
csiph-web