Quote:
Originally Posted by
sablista
Maybe I'm wrong but i think there's no "universal" syntax. I mean, sometimes i look at "resolved problems", i copy/paste the code but it's not working for me. RudiC asked me which version i use, so I suppose there are differences...
I don't know, what you mean by "universal syntax", but bash has a well-defined syntax with, AFIK, virtually know "exceptions from the rules". Of course, copy&paste without understanding what's behind, is always difficult - but this is not different in C or Java. Also, language evolution means that there are differences between versions, but this is ALSO true for nearly every other language.
For an explanation of a certain construct, the bash man page is a good source. This is similar to consulting the ANSI standard document for C for really knowing what's going on.
Of course, if a certain construct is not clear, you can ask here, but write a separate post for each construct you are interested in, and try to ask a precise question.