Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
06-script: user-defined variables in scripts #512
In order to remind learners about the idea of shell variables (which are introduced in 05-loops) and reinforce good practice, legibility, helping future users, etc., I'd like to suggest that we add another example after introducing comments. Specifically, it could look like:
Since variables are already come up in the previous lesson, I expect that the added time should be quite minimal whereas the payoff is quite important since some learners might forget that they can define their own variables or, worse, think that they are constrained to use the default special variables.
The downside is that many instructors are already pressed for time at this stage without new/additional material. Therefore, ways to cut back that don't strike me personally as too large a sacrifice could include: