simple c99 compiler
git clone git://
Log | Files | Refs | README | LICENSE

commit 737201b0ae652b8e2896c567fa74a05bf8a412e6
parent fb902b31fa5a8661b34750acd22c634ada216990
Author: Roberto E. Vargas Caballero <>
Date:   Mon, 12 Mar 2018 16:39:45 +0100

[tests/ar] Use date to get the unix time

This value is going to depend of the timezone where the script
is executed, so the best option is to let to the system to guess
what is the correct value.

Mtests/ar/execute/ | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/ar/execute/ b/tests/ar/execute/ @@ -2,20 +2,21 @@ uid=`id -u` gid=`id -g` +time=`date -d "1980-01-01" +%s` cat <<EOF >master.a !<arch> -file1 315532800 `printf "%-6d" $uid``printf "%-6d" $gid`100644 79 \` +file1 `printf "%-12d" $time``printf "%-6d" $uid``printf "%-6d" $gid`100644 79 \` This is the first file, and it should go in the first position in the archive. -file2 315532800 `printf "%-6d" $uid``printf "%-6d" $gid`100644 125 \` +file2 `printf "%-12d" $time``printf "%-6d" $uid``printf "%-6d" $gid`100644 125 \` But this other one is the second one, and it shouldn't go in the first position because it should go in the second position. -file3 315532800 `printf "%-6d" $uid``printf "%-6d" $gid`100644 118 \` +file3 `printf "%-12d" $time``printf "%-6d" $uid``printf "%-6d" $gid`100644 118 \` and at the end, this is the last file that should go at the end of the file, thus it should go in the third position.