[TxMt] Typeset & View (PDF)
Alain Matthes
alain.matthes at mac.com
Tue Apr 3 05:41:52 UTC 2007
Le 3 avr. 07 à 05:18, Allan Odgaard a écrit :
> On 3. Apr 2007, at 03:21, Dan Lowe wrote:
>
>> On Apr 2, 2007, at 2:33 PM, Alain Matthes wrote:
>>> There is a little change in one line :
>>>
>>> now
>>> if [ -s "${PDF}" -a ! "$PDF" -ot "$FILE" ]; then
>>>
>>> before
>>> if [ -s "${PDF}" -a "$PDF" -nt "$FILE" ]; then .....
>>>
>>> -ot instead -nt ? why ?
>> The first condition is negated by the "!", so it reads as "not
>> older than". The second condition reads as "newer than". So
>> ultimately they are equivalent.
>
> Except for the case where the PDF file has exactly the same date as
> the document file.
>
> Here the new version will still continue (with showing the PDF)
> where the old one would not (thus the change).
>
Thanks and sorry !
i need to work because I try to learn how to make my own script
so I try to understand this one. In my bash book , -nt et -ot are the
last operators for file test :(
Alain Matthes
More information about the textmate
mailing list