Skip to content

Commit 732b340

Browse files
committed
minor: code housekeeping.
This should not change the functionality of the friday_13th() fun, but I reckon `$@` is preferable than `$*` in that scpecific case!
1 parent bc596ee commit 732b340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datediff.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env ksh
22
# datediff.sh - Calculate time ranges between dates
3-
# v0.24.1 oct/2024 mountaineerbr GPLv3+
3+
# v0.24.2 oct/2024 mountaineerbr GPLv3+
44
[[ -n $BASH_VERSION ]] && shopt -s extglob #bash2.05b+/ksh93u+/zsh5+
55
[[ -n $ZSH_VERSION ]] && setopt NO_SH_GLOB KSH_GLOB KSH_ARRAYS SH_WORD_SPLIT GLOB_SUBST
66

@@ -629,7 +629,7 @@ function friday_13th
629629
fi ;diw_tgt=${diw_tgt:-1}
630630

631631
[[ $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'
633633
day="${3#0}" month="${2#0}" year="${1##*(0)}"
634634
day="${day:-1}" month="${month:-1}" year="${year:-0}"
635635

0 commit comments

Comments
 (0)