summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-07-07 05:14:13 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-07-07 05:14:13 (GMT)
commit18d3b7fc8e2de3826b3d269783ef624fc349ea5c (patch)
tree407a9ff960602e402f4ac22b919c637c50ae98b5 /bin
parentf68a2e6db773f31157cdf500a6509fa5249b9cff (diff)
downloadhdf5-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')
-rwxr-xr-xbin/newer8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/newer b/bin/newer
index 6fd86aa..ed2743b 100755
--- a/bin/newer
+++ b/bin/newer
@@ -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