DUE & DEMO: 2-2-2023 This LAB assignment is the Programming Project: sh Simulator in Chapter 3.11 Purpose: Understand how Unix/Linux sh works by using fork/exec/wait/pipe. String operationsREQUIREMENTS
Write a C program, mysh, which simulates the Unix sh for command processing.Read Chapter3-11 for details
============= HELP ====================== 1. Download samples/LAB2/lab2base.c It helps you to get started. 2. lab2base.c assumes only one directory: ./ for commands In your working directory (where you compile-run lab2base.c), enter ln -s /bin/ls myls ln -s /bin/cat mycat so that your CWD has myls and mycat When run lab2base.c, enter commands myls OR mycat filename 3. Modify lab2base.c to meet requirements of the assignment ======================================= SAMPLE SOLUTION: ~samples/LAB2/lab2.bin (down load and run under Linux)