Reply to post: Festivus

helloSystem: Pre-alpha FreeBSD project chases simplicity and elegance by taking cues from macOS

yetanotheraoc

Festivus

Ugh. I'm picturing *one* screen with *one* terminal window, a text file, a function, and a script.

$ cat feastdays.txt

year feastday date weekday

;The weekday here is for human readability. And I know about normalizing a database...

1309 Barnabas 1309-06-11 Wednesday

# define festivus(1309,Barnabas,Friday,after,1st) ...

# parse; if (found) {$answer<festivus(); echo $answer;} else {$date<prompt; echo $year $feastday $date $weekday>feastdays.txt; parse; $answer<festivus(); echo $answer;}

$ fest -- Friday after the feast of St Barnabas[June 11]

1309-06-13

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2021