shell script pitfall: “elsif” instead of “elif”

I know, that shouldn’t happen to a skilled shell script programmer, but it happened right now …

The “funny” thing was, that bash mourned about a syntax error only at the next “then”.

Of course, I can very well explain myself why that is, but still:
Handling this error is “sub-optimal”, isn’t it?


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.