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

I use some systems without seq, and they have Bash with version 2.x or 3.x on them (eg., OSX). seq has the nice property that writing a shell or executable replacement is easy.

I think the 2nd example is fine. It might be cut and pasted from a POSIX example.



Those are fair points. Another nit I just noticed in the second example is the extraneous semicolon.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: