diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2008-11-30 23:27:36 -0500 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2008-11-30 23:39:34 -0500 |
commit | 2483b7de82423d6bf0dec774526a2ca9fef3d64d (patch) | |
tree | bec1f26bf3455a06fae6cac00e2c795d73358234 /src/common | |
parent | 53b6ca110b9a6f17a7c7bc22e4f10d55bb6c2fb1 (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/common | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |