Question: Building Programs ( a ) Explain the concept of the shebang ( # ! ) at the start of script files for in

Building Programs
(a) Explain the concept of the "shebang" ("#!")at the start of script files for in-
terpreted languages.
(b) A developer writes a script in bash called printodd to extract and print the
odd pages of a PDF file. All the commands have been tested at the command
prompt and are known to execute as expected. The commands are placed in a
file after a line which reads
#!/bin/bash
but when the developer types ./printodd the program doesn't run and the
following is displayed:
bash: ./printodd: Permission denied
Explain what is wrong and how to correct it.
Scrutinise the following Makefile:
(Line numbers are for reference only and are not part of the code). The files in the
directory prior to the first attempt at compilation are as follows:
Building Programs ( a ) Explain the concept of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!