public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Symlink issue?
@ 2021-08-21 20:15 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2021-08-21 21:59 ` Ken Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2021-08-21 20:15 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Hi,

Please consider the following Cygwin session:

$ cd ~
$ pwd
/home/user
$ touch file
$ ls file
file
$ cygpath -w ~
C:\cygwin64\home\user
$ mkdir /cygdrive/g/cygwin/dir
$ ln -s /cygdrive/g/cygwin/dir ./dir
$ ls -l dir
... dir -> /cygdrive/g/cygwin/dir/
$ cd dir
$ pwd
/home/user/dir
$ cygpath -w `pwd`
G:\cygwin\dir
$ ls -l ../fil<TAB>  (this expands to ../file but when Enter is hit):
ls: cannot access '../file': No such file or directory

so basically "file" is not accessible with the relative dot-dot link,
even though somehow readline (bash completion) can figure it out and suggest
the correct completion.

Is this a Cygwin bug?

I'm using:
$ uname -a
CYGWIN_NT-6.1 XXXXX 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin

Cheers,

Anton Lavrentiev
Contractor NIH/NLM/NCBI


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-08-23 19:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21 20:15 Symlink issue? Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-21 21:59 ` Ken Brown
2021-08-22  0:40   ` Thomas Wolff
2021-08-22  0:55     ` Brian Inglis
2021-08-23 19:00       ` L A Walsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).