[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ls -F Behavior

From: Jim Meyering
Subject: Re: ls -F Behavior
Date: Sat, 13 Apr 2002 07:52:10 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu)

"David L. Craig" <address@hidden> wrote:
>     I'm running fileutils 4.1-10 under Debian unstable and
>     noticed the treatment of the -F flag changes when used
>     FILE specifications.  Given:

>     now follow the symlink to the directory (but not the
>     file) and cause me to think the type of symdir is d,
>     not l.
>     I cannot recall if this is changed behavior or not.
>     I have used ls -F for over a decade and have never
>     had my nose rubbed in this before.  Has something
>     changed?  Is this POSIX-compliant behavior?

Thanks for the report.
Although Debian's unstable does include some of the changes
from recent test releases, it is based on 4.1 and doesn't have
the relevant ls changes.

I believe the behavior shown below is POSIX-compliant.

The latest test release is here:


Using it, I get this:

  $ mkdir dir; touch file; ln -s file symfile; ln -s dir symdir
  $ command ls -F
  dir/  file  symdir@  symfile@
  $ command ls -F *
  file  symdir@  symfile@

  $ command ls -Fd *
  dir/  file  symdir@  symfile@

reply via email to

[Prev in Thread] Current Thread [Next in Thread]