Oracle
1Z0-409 · Question #77
You are writing a script and add the following line at the beginning of the script: #!/bin/bash What implications does this have on the shell script if the script is called directly at the c shell…
The correct answer is C. The script will be executed using bash as the shell interpreter. See the full explanation below for the reasoning.
Question
You are writing a script and add the following line at the beginning of the script:
#!/bin/bash What implications does this have on the shell script if the script is called directly at the c shell prompt?
Options
- AThe script will treat the line as a comment.
- BThe current shell will attempt to parse and execute the script.
- CThe script will be executed using bash as the shell interpreter.
- DThe script will be executed using bourne as the shell interpreter.
How the community answered
(25 responses)- A4% (1)
- B4% (1)
- C80% (20)
- D12% (3)
Community Discussion
No community discussion yet for this question.