On 12/31/24 04:49, Sean Denney wrote:
When I set the shell to sh, then echo $? returns 1 after running test -nt

OK, I think we've found the problem: plain sh doesn't fully support test -nt. It'd help to see how bad the problem is.

If you run sh, does 'test A -nt B' work when A is much newer than B? What happens when you run the following under sh?

touch B
sleep 2
touch A
test B -nt A
echo $?

Reply via email to