Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On OSX at least, if you run it as CAL instead of cal you get a sideways calendar:

    mcphage:~ $ CAL
        May 2016
    Mo     2  9 16 23 30
    Tu     3 10 17 24 31
    We     4 11 18 25
    Th     5 12 19 26
    Fr     6 13 20 27
    Sa     7 14 21 28
    Su  1  8 15 22 29


That is insane. The case-insensitive filesystem means the same binary runs, but the binary has a switch on the case of its own name.


A lot of apps pay attention to the name you run them as—for instance, making sure the correct name is reported when you list the command line switches. But this is definitely the most extreme case I'm aware of.


AKA ncal.


Yup, FreeBSD has cal and ncal. Latter has additional options for printing week numbers, date of Easter, etc., though I find it kind of hard to get used to transposed row/col output.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: