diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-07-07 05:14:13 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-07-07 05:14:13 (GMT) |
commit | 18d3b7fc8e2de3826b3d269783ef624fc349ea5c (patch) | |
tree | 407a9ff960602e402f4ac22b919c637c50ae98b5 /bin/newer | |
parent | f68a2e6db773f31157cdf500a6509fa5249b9cff (diff) | |
download | hdf5-18d3b7fc8e2de3826b3d269783ef624fc349ea5c.zip hdf5-18d3b7fc8e2de3826b3d269783ef624fc349ea5c.tar.gz hdf5-18d3b7fc8e2de3826b3d269783ef624fc349ea5c.tar.bz2 |
[svn-r11035] Purpose:
Improvement
Description:
Added some argument sanity chechking by ensuring exactly two
arguments are provided.
Platforms tested:
sol.
Diffstat (limited to 'bin/newer')
-rwxr-xr-x | bin/newer | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -19,9 +19,11 @@ # Programmer: Albert Cheng # Created Date: 2005/07/06 -if test -f $1 -a -f $2; then - if test X != X`find $1 -newer $2 -print`; then - exit 0 +if test $# -eq 2; then + if test -f $1 -a -f $2; then + if test X != X`find $1 -newer $2 -print`; then + exit 0 + fi fi fi exit 1 |