cheat-sheets icon indicating copy to clipboard operation
cheat-sheets copied to clipboard

Bash: clarify “Positional parameters […] should be checked”

Open SebastianSimon opened this issue 5 years ago • 0 comments

The Variables section in the Bash article has this bullet point:

  • Positional parameters of the script should be checked, those of functions should not

Could this be clarified, please? “Checked” for what? In what regard, specifically, do script parameters differ from function parameters? Maybe include an example of what “check” you’re talking about.

SebastianSimon avatar Jan 09 '21 14:01 SebastianSimon