delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/06/09:43:30

From: Martin Stromberg <Martin DOT Stromberg AT epl DOT ericsson DOT se>
Message-Id: <200108061306.PAA09386@lws256.lu.erisoft.se>
Subject: Re: Windows 2000 /dev/null permission query
To: djgpp-workers AT delorie DOT com
Date: Mon, 6 Aug 2001 15:06:35 +0200 (MET DST)
In-Reply-To: <00ce01c11e6c$5858cb40$0a02a8c0@acceleron> from "Andrew Cottrell" at Aug 06, 2001 09:38:39 PM
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Andrew said:
> > Does "ls -l NUL" say that it's a character device?
> DJGPP_204 D:\dj204\contrib\touch>set LFN=y
> 
> DJGPP_204 D:\dj204\contrib\touch>ls -l nul
> -rw-r--r--   1 AC       root            0 Jan  1  1980 nul
> 
> DJGPP_204 D:\dj204\contrib\touch>ls -l NUL
> -rw-r--r--   1 AC       root            0 Jan  1  1980 NUL
> 
> DJGPP_204 D:\dj204\contrib\touch>set LFN=n
> 
> DJGPP_204 D:\dj204\contrib\touch>ls -l NUL
> crw-r--r--   1 AC       root       0,   0 Aug  6 21:30 NUL>
                                                            ^
                                                           Note!

> I can't rememebr my Ui*x days to decode the 'c' in the permissions feilds.

"c" means it's a character device and "-" means it's a file.

> Some interesting diffreences:
>     1) check out the times as the last one was when I ran the ls command.
>     2) The ls with LFN=n has an extra 0, in the line

Regarding 2): that's normal as for devices you get the major and minor
numbers.

But is that ">" last on the last line a typo or not?


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019