Questions
- For shell scripters, what is the most important reason for following the POSIX standard?
- To ensure that scripts will only run on Linux operating systems.
- To ensure that scripts can run on a wide variety of Linux, Unix, and Unix-like operating systems.
- To ensure that all operating systems are running
bash
. - To ensure that scripts can use the advanced features of
bash
.
- Which of the following is a dynamic code checker?
checkbashisms
shellcheck
shall
will
- Which of the following statements about
sh
is true?- On every operating system,
sh
is always the Bourne shell. - On every operating system,
sh
is a symbolic link that points tobash
. sh
represents a different shell on different operating systems.
- On every operating system,
- You want to solve a math problem, and assign its value to a variable. Which of the following constructs...