delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/17/00:19:41

From: rjvdboon AT cs DOT vu DOT nl (Boon van der RJ)
Newsgroups: comp.os.msdos.djgpp
Subject: peculiarities with ls
Date: 16 Jun 1997 09:38:57 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 34
Message-ID: <5o31jh$7pn@star.cs.vu.nl>
NNTP-Posting-Host: sloep116.cs.vu.nl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

hello,

I noticed some weird things with ls (fileutils 3.16)
Using win95, tested with a clean-dos setup and in a dos-box, both lfn=y and n

ls shows normal + system + readonly files

ls -a shows the same plus the dots
ls -al shows normal + sys + ro + hidden
-->shouldn't this show the same files as -a, but in the long format??

and if I use the (ignored, according to the docs) -g flag 
ls -alg & -Alg & -aLg & -ALg also shows the volume label,
which should never be printed               ^^^^^^^^^^^^
-g should (under unix (at least at the uni)) do the same as -l,
 omitting the owner (printing which I never thought usefull under dos)

So, there are 2 things:
1) why do the files shown with -a and -al differ
2) why does -alg show the volume label, why does adding -g does anything,
   when it shouldn't

If it is specified and/or expected behaviour I am sorry to ask, but
if it's not...  I would like to hear. I can live with it (don't use -g)
but I thought I should report it.

Thanks in advance,

Robert

PS as I will be on holiday from 19 june, please cc by email.
-- 
rjvdboon AT cs DOT vu DOT nl        | "En dat is niet waar!" sprak Staatsecretaris
www.cs.vu.nl/~rjvdboon   |    Netelenbos (onderwijs) fel.

- Raw text -


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