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

Re: [MiNT] missing xversion.h



Helmut Karlowski wrote:
if [ existing -nt non-existing ]

should result in true.

You are right, guys, it is a shell issue.

David uses Ubuntu, and Ubuntu use dash to implement /bin/sh.

$ man dash
...
file1 -nt file2
  True if file1 and file2 exist and file1 is newer than file2.

$ man bash
...
file1 -nt file2
True if file1 is newer (according to modification date) than file2, or if file1 exists and file2 does not.

I don't know which one doesn't follow the right standard.
However, Helmut, your proposition to add -o ! -f will do the trick in any case.

--
Vincent Rivière