delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | "Melvin Curran" <melvin AT hme DOT ltd DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | ls /dev/c strangeness |
Date: | Mon, 22 Mar 2004 11:51:14 -0000 |
Lines: | 46 |
Message-ID: | <c3mjvj$sc6$1$8302bc10@news.demon.co.uk> |
NNTP-Posting-Host: | mailgate.hme.ltd.uk |
X-Trace: | news.demon.co.uk 1079956275 29062 80.177.95.250 (22 Mar 2004 11:51:15 GMT) |
X-Complaints-To: | abuse AT demon DOT net |
NNTP-Posting-Date: | Mon, 22 Mar 2004 11:51:15 +0000 (UTC) |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
X-Priority: | 3 |
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
X-MSMail-Priority: | Normal |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
To illustrate the problem, here is a sequence of commands straight from my dos session: C:\test>ls dir1 file1 file2 C:\test>ls -l total 2 drwxr-xr-x 2 dosuser dos 32 Mar 19 15:42 dir1 -rw-r--r-- 1 dosuser dos 7 Mar 19 15:42 file1 -rw-r--r-- 1 dosuser dos 7 Mar 19 15:42 file2 C:\test>ls /dev/c dir1 file1 file2 C:\test>ls -l /dev/c ls: /dev/c/file1: No such file or directory (ENOENT) ls: /dev/c/file2: No such file or directory (ENOENT) ls: /dev/c/dir1: No such file or directory (ENOENT) total 0 C:\test>ls /dev/c/test dir1 file1 file2 C:\test>ls -l /dev/c/test total 2 drwxr-xr-x 2 dosuser dos 32 Mar 19 15:42 dir1 -rw-r--r-- 1 dosuser dos 7 Mar 19 15:42 file1 -rw-r--r-- 1 dosuser dos 7 Mar 19 15:42 file2 As you can see I'm getting a problem when ls has any options (I have tried others) and the path given is /dev/c. I do, however, get the correct response if I am in the root directory of C. Is it just my system, or is everyone getting this? (I also downloaded the beta version to try - no difference) On a side note, I realise that 'ls /dev/c' lists the current directory on drive C rather than the root directory because of the way the dos file system works, but if /dev/c was introduced instead of C: to give us POSIX-like syntax, wouldn't it have been a good idea to give it POSIX-like semantics as well? -- Melvin
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |