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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29604 in the body.
You can then email your comments to 29604 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#29604; Package coreutils. (Thu, 07 Dec 2017 10:04:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 07 Dec 2017 10:04:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-coreutils <at> gnu.org
Subject: man cut should mention no way to do ls -l|cut ...
Date: Thu, 07 Dec 2017 17:37:10 +0800
On (info "(coreutils) cut invocation")

‘-d INPUT_DELIM_BYTE’
‘--delimiter=INPUT_DELIM_BYTE’
     With ‘-f’, use the first byte of INPUT_DELIM_BYTE as the input
     fields separator (default is TAB).

please mention there is no way to indicate more than one character,
thus no way to process
$ ls -l | cut ...
and that one should use awk, etc. for that.

Also mention it on the cut(1) man page.




Information forwarded to bug-coreutils <at> gnu.org:
bug#29604; Package coreutils. (Thu, 07 Dec 2017 15:47:01 GMT) Full text and rfc822 format available.

Message #8 received at 29604 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
 29604 <at> debbugs.gnu.org
Subject: Re: 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)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#29604; Package coreutils. (Thu, 07 Dec 2017 15:54:02 GMT) Full text and rfc822 format available.

Message #11 received at 29604 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eric Blake <eblake <at> redhat.com>
Cc: 29604 <at> debbugs.gnu.org
Subject: Re: bug#29604: man cut should mention no way to do ls -l|cut ...
Date: Thu, 07 Dec 2017 23:53:36 +0800
>>>>> "EB" == Eric Blake <eblake <at> redhat.com> writes:

EB> Let's step back a bit. We recommend that you NEVER parse ls output, as

No problem. Any example of what can't be parsed would be fine. Even e.g.,

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

your signature, with differing lengths of whitespace. Whatever.




Information forwarded to bug-coreutils <at> gnu.org:
bug#29604; Package coreutils. (Tue, 30 Oct 2018 02:19:02 GMT) Full text and rfc822 format available.

Message #14 received at 29604 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: 29604 <at> debbugs.gnu.org
Subject: Re: bug#29604: man cut should mention no way to do ls -l|cut ...
Date: Mon, 29 Oct 2018 20:18:20 -0600
severity 29604 wishlist
retitle 29604 wontfix
close 29604
stop

(triaging old bugs)

On 2017-12-07 8:53 a.m., 積丹尼 Dan Jacobson wrote:
>> "EB" == Eric Blake <eblake <at> redhat.com> writes:
> 
> EB> Let's step back a bit. We recommend that you NEVER parse ls output, as
> 
> No problem.  [...]

Closing this bug.

-assaf





Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 02:19:02 GMT) Full text and rfc822 format available.

Changed bug title to 'wontfix' from 'man cut should mention no way to do ls -l|cut ...' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 02:19:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 29604 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 02:19:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 27 Nov 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 149 days ago.

Previous Next


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