bug-coreutils
[Top][All Lists]
Advanced

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

Re: date +%s ignores TZ


From: Jan Engelhardt
Subject: Re: date +%s ignores TZ
Date: Sun, 2 Mar 2008 02:40:01 +0100 (CET)

On Feb 29 2008 15:26, Bob Proulx wrote:
>>
>>      echo $[`date +%s` % 86400];
>
>Note that the $[expression] syntax is deprecated and is scheduled for
>removal from a future version of the shell.  Please convert to using
>the now standard $((expression)) syntax.
>
>  echo $(( $(date +%s) % 86400 ));

$(()) is easily confusable with $(), I therefore ask $[] to be not removed,
more like the reverse actually.




reply via email to

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