summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2008-11-30 23:27:36 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2008-11-30 23:39:34 -0500
commit2483b7de82423d6bf0dec774526a2ca9fef3d64d (patch)
treebec1f26bf3455a06fae6cac00e2c795d73358234 /src/common
parent53b6ca110b9a6f17a7c7bc22e4f10d55bb6c2fb1 (diff)
add a couple of bugs about posix compliance and the use of getopts
instead of getopt.
Diffstat (limited to 'src/common')
-rw-r--r--src/common2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common b/src/common
index 51b0470..f6000d3 100644
--- a/src/common
+++ b/src/common
@@ -147,7 +147,7 @@ advance_date() {
local shortunits
# try things the GNU way first
- if date -d "$number $longunits" "$format" >&/dev/null ; then
+ if date -d "$number $longunits" "$format" >/dev/null 2>&1; then
date -d "$number $longunits" "$format"
else
# otherwise, convert to (a limited version of) BSD date syntax: