summaryrefslogtreecommitdiffstats
path: root/bash-completion/cal
diff options
context:
space:
mode:
authorTommi Kyntola2013-10-06 20:44:45 +0200
committerKarel Zak2013-10-22 10:27:03 +0200
commitc36c4a4e4d3e701f378f4bea15a6320a4447da89 (patch)
treef6f4b39aa7e1c5fb089857ed03a6ae221c064288 /bash-completion/cal
parentcal: added two missing tests (diff)
downloadkernel-qcow2-util-linux-c36c4a4e4d3e701f378f4bea15a6320a4447da89.tar.gz
kernel-qcow2-util-linux-c36c4a4e4d3e701f378f4bea15a6320a4447da89.tar.xz
kernel-qcow2-util-linux-c36c4a4e4d3e701f378f4bea15a6320a4447da89.zip
cal: added -w|--week for showing week numbers
Added week numbers both in ISO-6801 and North America numbering. The mode is determined by first day of the week, Monday for ISO and Sunday for North America mode. ISO week numbers are defined as the first Thursday being part of week 1. The North America numbering is defined, at least by gcal, as first Sunday being in the first week. Signed-off-by: Tommi Kyntola <kynde@iki.fi>
Diffstat (limited to 'bash-completion/cal')
-rw-r--r--bash-completion/cal2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/cal b/bash-completion/cal
index 9a90a2a59..1510eb1fa 100644
--- a/bash-completion/cal
+++ b/bash-completion/cal
@@ -11,7 +11,7 @@ _cal_module()
esac
case $cur in
-*)
- OPTS="--one --three --sunday --monday --julian --year --version --help"
+ OPTS="--one --three --sunday --monday --julian --year --week --version --help"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;