GNU bug report logs - #36666
Minor bug/inconsistency in ls command

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: hoffelmann@HIDDEN; dated Mon, 15 Jul 2019 13:53:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 36666 <at> debbugs.gnu.org:


Received: (at 36666) by debbugs.gnu.org; 16 Jul 2019 08:30:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 16 04:30:20 2019
Received: from localhost ([127.0.0.1]:49617 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hnIqq-0005mY-B2
	for submit <at> debbugs.gnu.org; Tue, 16 Jul 2019 04:30:20 -0400
Received: from ishtar.tlinx.org ([173.164.175.65]:36798
 helo=Ishtar.sc.tlinx.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coreutils@HIDDEN>) id 1hnIqo-0005mQ-NH
 for 36666 <at> debbugs.gnu.org; Tue, 16 Jul 2019 04:30:19 -0400
Received: from [192.168.3.12] (Athenae [192.168.3.12])
 by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 x6G8UEB3073543; Tue, 16 Jul 2019 01:30:16 -0700
Message-ID: <5D2D8B16.9090608@HIDDEN>
Date: Tue, 16 Jul 2019 01:30:14 -0700
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
To: hoffelmann@HIDDEN
Subject: Re: bug#36666: Minor bug/inconsistency in ls command
References: <5b7b312b7129cf76146cbb3dd544edec12bae4b6.camel@HIDDEN>
In-Reply-To: <5b7b312b7129cf76146cbb3dd544edec12bae4b6.camel@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36666
Cc: 36666 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2019/07/15 00:01, hoffelmann@HIDDEN wrote:
> Hi,
>
> I am using ls from the cureutils 8.31 on arch linux (5.2.0 x86_64) and
> think it has a bug/inconsistant in printing an file type indicator (-F) 
> while using the long listing format (-l).
>
>
> If I use `ls -F ~` I get the following output:
> -----------------------------------------------------------------------
> Desktop/    Downloads/	Nextcloud/  Pictures/  Templates/  Workspace/
> Documents/  Music@	OneDrive/   Public/    Videos/
>
>
> As the Music directory in ~ is a symbolic link to another folder an @
> is appended.
>
>
> But when using `ls -Fl ~` the output is
> -----------------------------------------------------------------------
> lrwxrwxrwx  1 rxo users   15  8. Jul 08:07 Music -> OneDrive/Music//
>   
----
In this case, ls -Fl is showing you the result of the link expansion and
the focus is on the 'target', i.e., the OneDrive/Music.  The classifier
character is being shown only for the target -- not the source of the
symlink.

In a different way, in the top listing the '@' in the 1st ls is telling
you that
Music is a symlink, in the 2nd listing, the '->' tells you that the same
thing,
that Music was(is) a symlink, so the '@' would be superfluous.  Instead,
it puts
a classifier on the target so you know what type it is.

One could think of it as inconsistent -- but only if remembering that
inconsistent options (different options) were given as well.


 




Information forwarded to bug-coreutils@HIDDEN:
bug#36666; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Jul 2019 13:52:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 15 09:52:08 2019
Received: from localhost ([127.0.0.1]:46927 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hn1Oi-0005W7-IY
	for submit <at> debbugs.gnu.org; Mon, 15 Jul 2019 09:52:08 -0400
Received: from lists.gnu.org ([209.51.188.17]:51232)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hoffelmann@HIDDEN>) id 1hmuze-0006qM-If
 for submit <at> debbugs.gnu.org; Mon, 15 Jul 2019 03:01:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49939)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <hoffelmann@HIDDEN>) id 1hmuzd-0005fF-Ht
 for bug-coreutils@HIDDEN; Mon, 15 Jul 2019 03:01:50 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <hoffelmann@HIDDEN>) id 1hmuzc-0005EH-J2
 for bug-coreutils@HIDDEN; Mon, 15 Jul 2019 03:01:49 -0400
Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:42146)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <hoffelmann@HIDDEN>)
 id 1hmuzc-0005DZ-95
 for bug-coreutils@HIDDEN; Mon, 15 Jul 2019 03:01:48 -0400
Received: by mail-ed1-x531.google.com with SMTP id v15so14297780eds.9
 for <bug-coreutils@HIDDEN>; Mon, 15 Jul 2019 00:01:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=message-id:subject:from:to:date:user-agent:mime-version
 :content-transfer-encoding;
 bh=8TeGeM6BO+x+UWXmvQafzzNqh6bUlUXkzK7P6uC+jCc=;
 b=ekwV6TB3flXAZoLss0OjNAcW06dhIbenA5kgZv/rtv146f9cZ6CRax4pPNpubLuDUz
 m35Jcxj+AhieN+xjVBxZv+Ohznj43B69tJXY0sF3Hckl1i0gnIaCsxFuaIud06LxgHmg
 AJJn1X2N65NXkAUk9amPkokkp4ot4D0VBTxlokRADDSJg6tSEZej5uHWFJglNc6W1Wrn
 NDsEge6xLFv6fL0snMclvTnSDwr4XAggRAwfYOfIF/dJAI9MQpETcl/cc9/K+BegShfK
 rbzIf+m1cLuqcJeF762RwtyS41BZyafMRTQDuGVa23EV9BTFTfoI5pOIk28GcQ3DkaE9
 dDFA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:message-id:subject:from:to:date:user-agent
 :mime-version:content-transfer-encoding;
 bh=8TeGeM6BO+x+UWXmvQafzzNqh6bUlUXkzK7P6uC+jCc=;
 b=EL2Kx1rSfREgknNnAG+lZEYdQIyK1w3WdctKabK6r2tUzcZNXw4WedrPnMdqYQ0Xln
 jahfedWEQJfnFNFX8bAuCW/cAxvdmI4Dopv50N3O9Y8PvUrsJWPleP8huocZYvvMTnA3
 q/dIbDJXcNeRKyJYDCpKj0AbqoN2dgctMsKV7q87g5s/WLjCeZddUcGSjE6m2AgqCk23
 ln1pCKCobsbbr3OOvc1t53owqR5Siy18U+biyUCVW7PekWmQmgLDgQ3CMehVnbQ8Abuk
 v4OF5WRrWO4MJmf04rxuZLgmWn4vnvH0Ltl7x50cT+dHHZ7tyVT3nnmEmwgM9ikuyYZy
 LglA==
X-Gm-Message-State: APjAAAUFzX03lLPpErRaUJQeJfObwgdRBXFyDY7MeFzX8tk9qET1ZRor
 83qKcEyyV7oglxbVxmGPUBjmq06SqQ==
X-Google-Smtp-Source: APXvYqwF+KZWZAeDJ9IN6UvXpTQEiHY8BdmsGUJEVeVEo0pRAAdt1GeiUJ7ch6DKV3pg/QKLiXn2uA==
X-Received: by 2002:a50:9167:: with SMTP id f36mr21450293eda.297.1563174105772; 
 Mon, 15 Jul 2019 00:01:45 -0700 (PDT)
Received: from archbook ([217.9.115.75])
 by smtp.gmail.com with ESMTPSA id i4sm3540557ejs.39.2019.07.15.00.01.43
 for <bug-coreutils@HIDDEN>
 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);
 Mon, 15 Jul 2019 00:01:44 -0700 (PDT)
Message-ID: <5b7b312b7129cf76146cbb3dd544edec12bae4b6.camel@HIDDEN>
Subject: Minor bug/inconsistency in ls command
From: hoffelmann@HIDDEN
To: bug-coreutils@HIDDEN
Date: Mon, 15 Jul 2019 09:01:42 +0200
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.32.3 
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::531
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 15 Jul 2019 09:52:06 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi,

I am using ls from the cureutils 8.31 on arch linux (5.2.0 x86_64) and
think it has a bug/inconsistant in printing an file type indicator (-F) 
while using the long listing format (-l).


If I use `ls -F ~` I get the following output:
-----------------------------------------------------------------------
Desktop/    Downloads/	Nextcloud/  Pictures/  Templates/  Workspace/
Documents/  Music@	OneDrive/   Public/    Videos/


As the Music directory in ~ is a symbolic link to another folder an @
is appended.


But when using `ls -Fl ~` the output is
-----------------------------------------------------------------------
total 40
drwxr-xr-x  2 rxo users 4096  8. Jul 07:34 Desktop/
drwxr-xr-x  2 rxo users 4096  1. Jun 11:44 Documents/
drwxr-xr-x  5 rxo users 4096 12. Jul 12:04 Downloads/
lrwxrwxrwx  1 rxo users   15  8. Jul 08:07 Music -> OneDrive/Music//
drwxr-xr-x 19 rxo users 4096  9. Jul 15:00 Nextcloud/
drwxr-xr-x  6 rxo users 4096 18. Jun 14:45 OneDrive/
drwxr-xr-x  3 rxo users 4096 11. Jul 13:30 Pictures/
drwxr-xr-x  2 rxo users 4096 10. Jul 16:01 Public/
drwxr-xr-x  2 rxo users 4096 10. Jul 16:01 Templates/
drwxr-xr-x  2 rxo users 4096 10. Jul 16:01 Videos/
drwxr-xr-x 17 rho users 4096 10. Jul 14:58 Workspace/


As you can see the @ symbol is missing and instead there is an
additional "/" appended to the corresponding entry. I think this is
inconsistant and confusing. 

I would expect to see this line:
-----------------------------------------------------------------------
lrwxrwxrwx  1 rxo users   15  8. Jul 08:07 Music@ -> OneDrive/Music/


or alternatively:
-----------------------------------------------------------------------
lrwxrwxrwx  1 rxo users   15  8. Jul 08:07 Music -> OneDrive/Music/@


but I would prefer the first suggestion.





Acknowledgement sent to hoffelmann@HIDDEN:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#36666; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.