This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cd accepting paths with trailing dots that don't exist (bash and tcsh)


Hi All,

I've just come across some very strange (to me at least) results with the cd
command in both bash and tcsh under cygwin (1.3.17-1).  I have cut and paste
from my shell as I feel it would be easier for you to read it yourself.

I don't have any aliases set.  The output is all from bash, but tcsh seemed
to do exactly the same thing.

I apologise if this is correct functionality, but the suse box I tried this
on complained bitterly at the lack of blah... etc existing.

Cheers,

Steve.

Steve Fairbairn@STEVE_FAIRBAIRN ~
$ ls
1.txt      ERRLEVEL      auto  expect     pbtrc01   tst.c    tst2.exe
2.txt      MESSAGES.txt  bin   makecd.sh  pbtsp01   tst.exe  vimfiles
Downloads  _viminfo      ct    nohup.out  test.exe  tst2.c   work

Steve Fairbairn@STEVE_FAIRBAIRN ~
$ cd ct

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct
$ ls
data

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct
$ cd ..

Steve Fairbairn@STEVE_FAIRBAIRN ~
$ cd ct.

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct.
$ ls
data

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct.
$ cd ../ct.

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct.
$ ls
data

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct.
$ cd ../ct..

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct..
$ ls

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct..
$ cd ../ct...........

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct...........
$ cd ..

Steve Fairbairn@STEVE_FAIRBAIRN ~
$ cd ct.........

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct.........
$ cd ..

Steve Fairbairn@STEVE_FAIRBAIRN ~
$ ls -lda *
-rw-rw-rw-    1 Steve Fa unknown     30849 Dec  5 08:28 1.txt
-rw-rw-rw-    1 Steve Fa unknown     29561 Dec  5 08:29 2.txt
drwxrwxrwx+   2 Administ unknown         0 Nov 18 16:07 Downloads
-rwxrwxrwx    1 Steve Fa unknown         4 Nov 28 14:36 ERRLEVEL
-rwxrwxrwx    1 Steve Fa unknown       290 Nov 28 14:36 MESSAGES.txt
-rwxrwxrwx    1 Administ unknown      4978 Nov 22 17:14 _viminfo
drwxrwxrwx+   2 Steve Fa unknown      4096 Oct  3 09:40 auto
drwxrwxrwx+   2 Steve Fa unknown         0 Oct  3 09:58 bin
drwxrwxrwx+   3 Steve Fa unknown         0 Oct  3 09:26 ct
drwxrwxrwx+   2 Administ unknown         0 Nov 26 10:02 expect
-rwxr-xr-x    1 Steve Fa unknown       131 Nov 28 10:55 makecd.sh
-rw-------    1 Steve Fa unknown         0 Nov 25 16:10 nohup.out
-rw-rw-rw-    1 Steve Fa unknown   1905211 Nov 22 08:41 pbtrc01
-rw-rw-rw-    1 Steve Fa unknown   1910937 Nov 22 11:20 pbtsp01
-rwxrwxrwx    1 Steve Fa unknown     49152 Nov 25 09:53 test.exe
-rw-rw-rw-    1 Steve Fa unknown       379 Nov 29 10:20 tst.c
-rwxrwxrwx    1 Steve Fa unknown     19722 Nov 29 10:20 tst.exe
-rw-rw-rw-    1 Steve Fa unknown       158 Dec 10 08:54 tst2.c
-rwxrwxrwx    1 Steve Fa unknown     19071 Dec 10 08:54 tst2.exe
drwxrwxrwx+  10 Administ unknown         0 Oct  3 10:26 vimfiles
lrwxrwxrwx    1 Steve Fa unknown       112 Nov 22 11:38 work ->
d:/w32/data/work


Steve Fairbairn@STEVE_FAIRBAIRN ~
$ cd ct.....

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct.....
$ pwd
/home/Steve Fairbairn/ct.....

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct.....
$ ls

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct.....
$ echo blah >blah
bash: blah: No such file or directory

Steve Fairbairn@STEVE_FAIRBAIRN ~/ct.....
$


******************************************************* 
This email has originated from Perwill plc (Registration No. 1906964) 
Office registered at: 13A Market Square, Alton, Hampshire, GU34 1UR, UK 
Tel: +44 (0)1420 545000 
Fax: +44 (0)1420 545001 
www.perwill.com 
******************************************************* 
Privileged, confidential and/or copyright information may be contained 
in this email, and is only for the use of the intended addressee. 
To copy, forward, disclose or otherwise use it in any way if you are not 
the intended recipient or responsible for delivering to him/her is
prohibited.
If you receive this email by mistake, please advise the sender immediately, 
by using the reply facility in your email software.

We may monitor the content of emails sent and received via our network 
for the purposes of ensuring compliance with policies and procedures. 
This message is subject to and does not create or vary any contractual 
relationships between Perwill plc and the recipient. 
******************************************************* 
Any opinions expressed in the email are those of the sender and not 
necessarily of Perwill plc.
******************************************************* 
This email has been scanned for known viruses using 
McAfee WebShield 4.5 MR1a 
******************************************************* 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]