bug-coreutils
[Top][All Lists]
Advanced

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

bug#17937: Getting gnu touch and gnu date to play nicely


From: address@hidden
Subject: bug#17937: Getting gnu touch and gnu date to play nicely
Date: Sat, 05 Jul 2014 10:44:14 -0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 07/04/2014 02:15 PM, Pádraig Brady wrote:
tag 17937 notabug
close 17937
stop

On 07/04/2014 11:18 AM, address@hidden wrote:
Most of the time I love Linux CLI, but rare occasions like this s*** makes me 
want to throw my computer through the wall!

 From the touch manpage.

-d, --date=STRING
parse STRING and use it instead of current time



~$ touch -d="now" file
touch: invalid date format ‘=now’
~$ touch -d="$(date)" file
touch: invalid date format ‘=Fri Jul 4 06:05:22 EDT 2014’
~$ touch -d="$(date -R)" file
touch: invalid date format ‘=Fri, 04 Jul 2014 06:05:30 -0400’
~$ touch -d="$(date -u)" file
touch: invalid date format ‘=Fri Jul 4 10:05:33 UTC 2014’


Is it possible that touch could get an update to support the common output 
provided by the gnu version of `date`?
They'll mostly work if you remove the '='


Thanks Brady and Proulx.
You're absolutely correct. I obviously made the mistake. I never make that mistake with the '=' so I don't know why I did now. I appreciate all your help. :)







reply via email to

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