Start week from Monday in cal(1)
- Reply: Warner Losh : "Re: Start week from Monday in cal(1)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Jun 2024 16:25:37 UTC
Hello! As you can find, FreeBSD cal(1) man page says that "It is not possible to display Monday as the first day of the week with cal". But daily it is more comfortable if weeks start from Monday. I know that there is ncal (vertical) mode which always starts from Monday, but any other calendar in the world (software or that on the wall) is horizontal, so ncal is uncomfortable too. So I've made a simple patch that adds -M option to cal(1) to start week from Monday: https://codeberg.org/vall/stuff/src/branch/main/ncalfixed By the way, Debian also has set of patches that adds such option: https://salsa.debian.org/meskes/bsdmainutils/-/tree/master/debian/patches Can I ask if such an option can be added to the FreeBSD base? It's highly appreciative if my tiny patches with or without modifications can be helpful. Or are there historical or some other reasons for nonpossibility to start weeks from Monday? Thank you! ----- Best regards, Valentine Astakhov.