GNU bug report logs - #29604
wontfix

Previous Next

Package: coreutils;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 7 Dec 2017 10:04:01 UTC

Severity: wishlist

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Blake <eblake <at> redhat.com>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>, 29604 <at> debbugs.gnu.org
Subject: bug#29604: man cut should mention no way to do ls -l|cut ...
Date: Thu, 7 Dec 2017 09:46:44 -0600
[Message part 1 (text/plain, inline)]
On 12/07/2017 03:37 AM, 積丹尼 Dan Jacobson wrote:

> thus no way to process
> $ ls -l | cut ...
> and that one should use awk, etc. for that.

Let's step back a bit. We recommend that you NEVER parse ls output, as
it is inherently ambiguous and difficult to parse. MUCH better is to use
stat instead of ls, at which point you can get directly at the
information you want without having to post-process potentially
ambiguous output.  If anything, added documents should point people to
stat, not to bad ways of parsing ls.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 6 years and 209 days ago.

Previous Next


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