delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/17/04:13:04

Date: Tue, 17 Jun 1997 11:12:02 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Boon van der RJ <rjvdboon AT cs DOT vu DOT nl>
cc: djgpp AT delorie DOT com
Subject: Re: peculiarities with ls
In-Reply-To: <5o31jh$7pn@star.cs.vu.nl>
Message-ID: <Pine.SUN.3.91.970617111050.20818L-100000@is>
MIME-Version: 1.0

On 16 Jun 1997, Boon van der RJ wrote:

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

Yes, it should.  This is a bug in the ported `ls', thanks for
reporting it.  If you add `--color' or with `-F' options, `-al' and
`-a' show the same files.  (I always use `--color=auto', that's why I
didn't see this bug.)

> and if I use the (ignored, according to the docs) -g flag 

`-g' is NOT ignored in the DJGPP port.  I didn't have time to update
the official docs, but the DJGPP README file included in the
fil316b.zip package clearly says so:

     A DOS-specific -g switch makes the long format print MSDOS
     attribute bits (r,h,s,v,d,m) instead of the Unix-style mode bits.
     When called with -a switch, `ls' will display files with hidden
     and system attributes, and volume labels (if present).

> ls -alg & -Alg & -aLg & -ALg also shows the volume label,
> which should never be printed               ^^^^^^^^^^^^

Why shouldn't there be a way to display the volume label using
Fileutils?  It *is*, after all, just another entry in the root
directory.  IMHO programs have no reason concealing from me some of
the info they get anyway.  `-g' is a stop-gap for those who don't like
seeing the volume label: if you don't say both `-a' and `-g', the
label won't show.

- Raw text -


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