Timeline for Unix shell script, parameters with spaces
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 23, 2018 at 16:40 | comment | added | Kusalananda♦ | As far as I understand, it's a relatively recent addition to the POSIX shell grammar (but I don't know how recent, it may still be quite old). I'm sure someone in the POSIX loop knows exactly when it was included. | |
| Nov 23, 2018 at 16:34 | comment | added | terdon♦ | @Kusalananda hmm, yes good point. I personally never use the for i do syntax because I find the explicit mention of "$@" more clear and readable (OK, also because I simply didn't know about for i do until a couple of years ago :P). But yes, you're quite right. | |
| Nov 23, 2018 at 16:25 | comment | added | Kusalananda♦ | The for i do syntax (instead of for i in "$@"; do) removes the danger of forgetting to quote the $@. | |
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot | replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/ | |
| Dec 4, 2015 at 9:31 | history | edited | terdon♦ | CC BY-SA 3.0 | deleted 3 characters in body |
| Dec 4, 2015 at 9:17 | history | answered | terdon♦ | CC BY-SA 3.0 |