Ok, it’s #! /bin/sh

When I set the shell to sh, then echo $? returns 1 after running test -nt

— Sean

> On Dec 31, 2024, at 6:40 AM, Paul Eggert <egg...@cs.ucla.edu> wrote:
> 
> On 12/31/24 04:22, Sean Denney wrote:
>> if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
>> then :
>>   emulate sh
> 
> Those lines say that if testsuite is being run by zsh, then zsh should 
> execute 'emulate sh'. But is testsuite actually being run by zsh? What is the 
> first line of the testsuite file?
> 
> The file timestamps indicate that configure is newer than configure.1, but if 
> you ignore the subseconds part of the timestamps they compare equal. So one 
> possibility is that the testsuite is being run by a shell other than zsh, a 
> shell that ignores subsecond timestamps.
> 


Reply via email to