@vaporeon_ probably the most recent mistakes I have made were bash-related. I made some wrong assumptions regarding scope rules for variables, resulting in situations where variables in loops had values from previous iterations of the loop that I didn't expect, causing subtle bugs that took me hours to unravel
@wallhackio Got an example? I am Unaware of the scope rules for Bash, actually, but I'm guessing based on your comment that they're different from the scope rules for C?
@wallhackio @vaporeon_ really C is block scoped and for loops are an implicit block. you can introduce new blocks arbitrarily wherever a statement is allowed
@aescling @wallhackio Yes, you can even start a block without any
fororwhileor function definition... Should you? No. But can you? Yes: