diff options
author | Tommi Kyntola <kynde@iki.fi> | 2013-10-06 21:44:45 +0300 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2013-10-22 10:27:03 +0200 |
commit | c36c4a4e4d3e701f378f4bea15a6320a4447da89 (patch) | |
tree | f6f4b39aa7e1c5fb089857ed03a6ae221c064288 /bash-completion | |
parent | a2c047e01799691bee765f13057f495bb43729e9 (diff) | |
download | util-linux-c36c4a4e4d3e701f378f4bea15a6320a4447da89.tar.gz |
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')
-rw-r--r-- | bash-completion/cal | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/cal b/bash-completion/cal index 9a90a2a5..1510eb1f 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 ;; |