Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Translate cal's weekdays into other languages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Translate cal's weekdays into other languages
Authored by: Evil B on Jun 17, '03 01:28:43PM
how come this cal function doesn't get stuck in an infinite loop?

would it be more logical to use

alias cal "/usr/bin/cal \!* | sed 's/ S M Tu W Th F S/ S M Ti O To F L/g'"

[ Reply to This | # ]

Translate cal's weekdays into other languages
Authored by: englabenny on Jun 17, '03 04:19:51PM
Tcsh seems to know that loops can occur, and checks for them. If I made up an alias called cal, where cal wasn't the first command called, tcsh would report it.

It would complain on such a thing as: (not that it makes sense, but it's just an example.)
% alias cal 'date | cal'
% cal
Alias loop.


[ Reply to This | # ]
Translate cal's weekdays into other languages
Authored by: Evil B on Jun 18, '03 06:45:40AM

perhaps TCSH checks back to the first alias made?



[ Reply to This | # ]