[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17937: Getting gnu touch and gnu date to play nicely
From: |
Pádraig Brady |
Subject: |
bug#17937: Getting gnu touch and gnu date to play nicely |
Date: |
Fri, 04 Jul 2014 19:15:35 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
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 '='