coreutils
[Top][All Lists]
Advanced

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

Why two `touch`es running back-to-back generate files with the same time


From: Peng Yu
Subject: Why two `touch`es running back-to-back generate files with the same time?
Date: Thu, 9 Apr 2015 16:56:22 -0500

Hi, See below for the output. I have Mac OS X 10.9.5.

/tmp$ touch a; touch b
/tmp$ [ a -nt b]
bash: [: missing `]'
/tmp$ [ a -nt b ]; echo $?
1
/tmp$ [ b -nt a ]; echo $?
1
/tmp$ stat a
  File: ‘a’
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 1000001h/16777217d      Inode: 32209182    Links: 1
Access: (0644/-rw-r--r--)  Uid: (  501/      py)   Gid: (    0/   wheel)
Access: 2015-04-09 16:47:03.000000000 -0500
Modify: 2015-04-09 16:47:03.000000000 -0500
Change: 2015-04-09 16:47:03.000000000 -0500
 Birth: 2015-04-09 16:47:03.000000000 -0500
/tmp$ stat b
  File: ‘b’
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 1000001h/16777217d      Inode: 32209183    Links: 1
Access: (0644/-rw-r--r--)  Uid: (  501/      py)   Gid: (    0/   wheel)
Access: 2015-04-09 16:47:03.000000000 -0500
Modify: 2015-04-09 16:47:03.000000000 -0500
Change: 2015-04-09 16:47:03.000000000 -0500
 Birth: 2015-04-09 16:47:03.000000000 -0500

-- 
Regards,
Peng



reply via email to

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