Quoting means just that, bracketing a string in quotes. Thishas the effect of protecting specialcharacters in the string from reinterpretationor expansion by the shell or shell script.
An important use ofquoting is protecting a command-line parameter from the shell
Every command returns an exit status
A successful command returns a 0, whilean unsuccessful one returns a non-zerovalue.
The last command executed in the function orscript determines the exit status.
exit nnncommand may be used to deliver annnnexit status to the shell(nnnmust be an integer in the 0 -255 range)
When a script ends with an exit that hasno parameter, the exit status of the script is the exit statusof the last command executed in the script
The equivalent of a bare exit is exit $? or even just omitting the exit.
$? represents the last exit status
An important use ofquoting is protecting a command-line parameter from the shell
Every command returns an exit status
A successful command returns a 0, whilean unsuccessful one returns a non-zerovalue.
The last command executed in the function orscript determines the exit status.
exit nnncommand may be used to deliver annnnexit status to the shell(nnnmust be an integer in the 0 -255 range)
When a script ends with an exit that hasno parameter, the exit status of the script is the exit statusof the last command executed in the script
The equivalent of a bare exit is exit $? or even just omitting the exit.
$? represents the last exit status