bug-bash
[Top][All Lists]
Advanced

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

Re: test -nt not sane


From: Sam Steingold
Subject: Re: test -nt not sane
Date: Wed, 10 Aug 2011 15:06:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> * Curtis Doty <address@hidden> [2011-08-10 11:53:52 -0700]:
>
> They have identical mtimes (as set by touch)--i.e. the directory is
> *not* newer than the symlink--but it still outputs "yes". Why?

mtime for a symlink comes from stat(), not stat().
anything is newer than a non-existent object.

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 
11.0.60900031
http://truepeace.org http://memri.org http://openvotingconsortium.org
http://www.PetitionOnline.com/tap12009/ http://camera.org http://ffii.org
Isn't "Microsoft Works" an advertisement lie?




reply via email to

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