I do not understand what I am doing wrong. Any help would be appreciated.
Thank you!
#!/bin/bash
SEATS=$1
seats_remaining=$SEATS
for ((i = $SEATS; i >=1; i--));
do
echo "$i will take a seat"
seats_remaining="$(($seats_remaining-1))"
./Lab4 $seats_remaining $i &
done
trap "exit" INT TERM ERR
trap "kill 0" EXIT`enter code here`
wait