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

I was talking about the implementation. To whoever has implemented and who will maintain this; to them I think this will read horrible, and that is not good even if it is invisible to an end-user. I mean, how long wouldn’t even a very experienced bash programmer take to understand that substitution...


To be fair this is one of the least readable examples of the document. They're not all that bad.


Yes, far from it. Actually a lot them seem very intuitive, esp.

  lower() {
      # Usage: lower "string"
      printf '%s\n' "${1,,}"
  }
And with uppercase, "${1^^}" instead.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: