bug-bash
[Top][All Lists]
Advanced

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

Re: test builtin of bash is not using nanosecond timestamps


From: Eric Blake
Subject: Re: test builtin of bash is not using nanosecond timestamps
Date: Tue, 06 Mar 2012 17:37:53 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1

On 03/06/2012 05:26 PM, Chet Ramey wrote:
> On 3/6/12 7:22 AM, address@hidden wrote:
>> Configuration Information [Automatically generated, do not change]:
>> Machine: i586
>> OS: linux-gnu
>> Compiler: gcc -I/usr/src/packages/BUILD/bash-4.2 
>> -L/usr/src/packages/BUILD/bash-4.2/../readline-6.2
>> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
>> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-suse-linux-gnu' 
>> -DCONF_VENDOR='suse' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' 
>> -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -march=i586 
>> -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 
>> -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g 
>> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DRECYCLES_PIDS 
>> -Wall -g -std=gnu89 -Wextra -Wno-unprototyped-calls -Wno-switch-enum 
>> -Wno-unused-variable -Wno-unused-parameter -ftree-loop-linear -pipe 
>> -fprofile-use
>> uname output: Linux boole 2.6.27.48-0.2-pae #5 SMP Fri Sep 24 16:09:41 CEST 
>> 2010 i686 i686 i386 GNU/Linux
>> Machine Type: i586-suse-linux-gnu
>>
>> Bash Version: 4.2
>> Patch Level: 20
>> Release Status: release
>>
>> Description:
>>      As in subject the test builtin does not use the nanosecond timestamps
>>      of the stat structure specified in POSIX.1-2008.  The patch included
>>      shouls add the comparision of the nanosecond timestamps.
> 
> Thanks for the report.  Unfortunately, the way different versions of Unix
> name the `struct timespec' members of struct stat varies, and so the patch
> is only valid on Linux, Solaris, and Cygwin.  I will come up with some
> autoconf-based way to do it.

Gnulib already supports this; see the lib/stat-time.h header, which
should be pretty easy to import into bash.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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