GNU bug report logs - #11183
[coreutils 8.13] touch: add options -v, --verbose

Previous Next

Package: coreutils;

Reported by: Jari Aalto <jari.aalto <at> cante.net>

Date: Thu, 5 Apr 2012 05:16:01 UTC

Severity: normal

Tags: notabug

Done: Jim Meyering <jim <at> meyering.net>

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 11183 in the body.
You can then email your comments to 11183 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#11183; Package coreutils. (Thu, 05 Apr 2012 05:16:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jari Aalto <jari.aalto <at> cante.net>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 05 Apr 2012 05:16:01 GMT) Full text and rfc822 format available.

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

From: Jari Aalto <jari.aalto <at> cante.net>
To: GNU Project <bug-coreutils <at> gnu.org>
Subject: [coreutils 8.13] touch: add options -v, --verbose
Date: Thu, 05 Apr 2012 08:14:20 +0300
Please add verbose options to program touch(1):

    -v, --verbose

Similarly than what is found in cp(1), mv(1). Seing what files are being
touched e.g. from scripts would be helpful:

    touch ${optionverbose:+--verbose} <file pattern>

Jari




Information forwarded to bug-coreutils <at> gnu.org:
bug#11183; Package coreutils. (Thu, 05 Apr 2012 12:04:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Jari Aalto <jari.aalto <at> cante.net>
Cc: 11183 <at> debbugs.gnu.org
Subject: Re: bug#11183: [coreutils 8.13] touch: add options -v, --verbose
Date: Thu, 05 Apr 2012 13:02:54 +0100
On 04/05/2012 06:14 AM, Jari Aalto wrote:
> 
> Please add verbose options to program touch(1):
> 
>     -v, --verbose
> 
> Similarly than what is found in cp(1), mv(1). Seing what files are being
> touched e.g. from scripts would be helpful:
> 
>     touch ${optionverbose:+--verbose} <file pattern>

Well files are always touched, or at a low level if the
timestamps don't need to be updated, this info isn't returned.

Also to indicate as to whether files were created or not,
is problematic, I don't think that can be done atomically.

cheers,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#11183; Package coreutils. (Thu, 05 Apr 2012 12:09:02 GMT) Full text and rfc822 format available.

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

From: Jim Meyering <jim <at> meyering.net>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 11183 <at> debbugs.gnu.org, Jari Aalto <jari.aalto <at> cante.net>
Subject: Re: bug#11183: [coreutils 8.13] touch: add options -v, --verbose
Date: Thu, 05 Apr 2012 14:08:08 +0200
Pádraig Brady wrote:
> On 04/05/2012 06:14 AM, Jari Aalto wrote:
>>
>> Please add verbose options to program touch(1):
>>
>>     -v, --verbose
>>
>> Similarly than what is found in cp(1), mv(1). Seing what files are being
>> touched e.g. from scripts would be helpful:
>>
>>     touch ${optionverbose:+--verbose} <file pattern>
>
> Well files are always touched, or at a low level if the
> timestamps don't need to be updated, this info isn't returned.
>
> Also to indicate as to whether files were created or not,
> is problematic, I don't think that can be done atomically.

Exactly.
I'd rather not add any more --verbose options like this.
In fact, I have been sorely tempted to remove the --verbose
options from chown/chgrp and chmod: the options add complexity and
the printed results are not reliable.




Information forwarded to bug-coreutils <at> gnu.org:
bug#11183; Package coreutils. (Thu, 05 Apr 2012 12:17:01 GMT) Full text and rfc822 format available.

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

From: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
To: Jari Aalto <jari.aalto <at> cante.net>, "11183 <at> debbugs.gnu.org"
	<11183 <at> debbugs.gnu.org>
Subject: RE: bug#11183: [coreutils 8.13] touch: add options -v, --verbose
Date: Thu, 5 Apr 2012 14:15:55 +0200
Jari Aalto wrote:

> Please add verbose options to program touch(1):
> 
>     -v, --verbose
> 
> Similarly than what is found in cp(1), mv(1). Seing what files are being
> touched e.g. from scripts would be helpful:
> 
>     touch ${optionverbose:+--verbose} <file pattern>

To just reslve the file pattern, I'd suggest

	echo touch <file pattern>

Have a nice day,
Berny




Added tag(s) notabug. Request was from Jim Meyering <jim <at> meyering.net> to control <at> debbugs.gnu.org. (Sun, 07 Oct 2012 09:40:02 GMT) Full text and rfc822 format available.

Reply sent to Jim Meyering <jim <at> meyering.net>:
You have taken responsibility. (Sun, 07 Oct 2012 09:40:02 GMT) Full text and rfc822 format available.

Notification sent to Jari Aalto <jari.aalto <at> cante.net>:
bug acknowledged by developer. (Sun, 07 Oct 2012 09:40:03 GMT) Full text and rfc822 format available.

Message #21 received at 11183-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 11183-done <at> debbugs.gnu.org, Jari Aalto <jari.aalto <at> cante.net>
Subject: Re: bug#11183: [coreutils 8.13] touch: add options -v, --verbose
Date: Sun, 07 Oct 2012 11:39:08 +0200
tags 11183 notabug
thanks

Jim Meyering wrote:
> Pádraig Brady wrote:
>> On 04/05/2012 06:14 AM, Jari Aalto wrote:
>>>
>>> Please add verbose options to program touch(1):
>>>
>>>     -v, --verbose
>>>
>>> Similarly than what is found in cp(1), mv(1). Seing what files are being
>>> touched e.g. from scripts would be helpful:
>>>
>>>     touch ${optionverbose:+--verbose} <file pattern>
>>
>> Well files are always touched, or at a low level if the
>> timestamps don't need to be updated, this info isn't returned.
>>
>> Also to indicate as to whether files were created or not,
>> is problematic, I don't think that can be done atomically.
>
> Exactly.
> I'd rather not add any more --verbose options like this.
> In fact, I have been sorely tempted to remove the --verbose
> options from chown/chgrp and chmod: the options add complexity and
> the printed results are not reliable.

Also, touch is different from mv and cp.  For those two,
using --verbose can provide basic progress indicator when
the files are large, and for mv, when rename is not usable.

So I'm closing this.




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

This bug report was last modified 12 years and 308 days ago.

Previous Next


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