Problem

Use execve to write a program called myls whose behavior is identical to the /bin/ls pro...

Use execve to write a program called myls whose behavior is identical to the /bin/ls program. Your program should accept the same command line arguments, interpret the identical environment variables, and produce the identical output.

The ls program gets the width of the screen from the COLUMNS environment variable. If COLUMNS is unset, then ls assumes that the screen is 80 columns wide. Thus, you can check your handling of the environment variables by setting the COLUMNS environment to something smaller than 80:

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search