Hacker News new | past | comments | ask | show | jobs | submit login

> return 1 to the caller to indicate we did make an update.

This (both in awk and python code) seems useless, as the return value from update() is not used anyhere. Am I missing something obvious?




Yeah, it's used in the top-level update() call in the BEGIN block:

  if (update(ARGV[1]) == 0)
      print ARGV[1] " is up to date"


Right, I missed that one, probably considered it a cosmetic feature!




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: