File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env ksh
2
2
# datediff.sh - Calculate time ranges between dates
3
- # v0.24.1 oct/2024 mountaineerbr GPLv3+
3
+ # v0.24.2 oct/2024 mountaineerbr GPLv3+
4
4
[[ -n $BASH_VERSION ]] && shopt -s extglob # bash2.05b+/ksh93u+/zsh5+
5
5
[[ -n $ZSH_VERSION ]] && setopt NO_SH_GLOB KSH_GLOB KSH_ARRAYS SH_WORD_SPLIT GLOB_SUBST
6
6
@@ -629,7 +629,7 @@ function friday_13th
629
629
fi ; diw_tgt=${diw_tgt:- 1}
630
630
631
631
[[ $1 = $glob2 ]] && { d_tgt=$1 && shift ; } || d_tgt=13
632
- IFS=" $IFS$SEP " ; set -- $* ; (( $# )) || set -- $( get_timef) ; IFS=$' \t\n '
632
+ IFS=" $IFS$SEP " ; set -- $@ ; (( $# )) || set -- $( get_timef) ; IFS=$' \t\n '
633
633
day=" ${3# 0} " month=" ${2# 0} " year=" ${1##* (0)} "
634
634
day=" ${day:- 1} " month=" ${month:- 1} " year=" ${year:- 0} "
635
635
You can’t perform that action at this time.
0 commit comments