問題文
A Bourne shell script on a NetBSD host must act on every name that was supplied on the command line, one at a time, and must also report how many names it received. Which pair of sources fits?
選択肢
- Acting on each given name one at a time is expressed as a loop over the surrounding environment and the count of how many were supplied is read from the previous status that the interpreter sets on entry.
- Acting on each given name one at a time is expressed as a loop over the surrounding environment and the count of how many were supplied is read from the argument count that the interpreter sets on entry.
- Acting on each given name one at a time is expressed as a loop over the positional parameters and the count of how many were supplied is read from the argument count that the interpreter sets on entry.
- Acting on each given name one at a time is expressed as a loop over the positional parameters and the count of how many were supplied is read from the previous status that the interpreter sets on entry.