Question: help I keep getting an error for the line: read -p Enter the number of cards to draw: num_cards I'm not sure what I'm

help I keep getting an error for the line: read -p "Enter the number of cards to draw: " num_cards I'm not sure what I'm missing in this part of the loop.

 help I keep getting an error for the line: read -p

"Enter the number of cards to draw: " num_cards I'm not sure

what I'm missing in this part of the loop. I have an

I have an error in my code, that I'm not sure why. it is in the previous line(s) of the num_cards input when the user chooses option 1.

true; \#creates the menu loop and the options for the loop -e "Welcome to the card deck simulator, please select from the foldoring option -e "1. Draw a selected number of cards from the current deck" -e "2. Get a new deck of cards." -e "3. Exit." -p "Enter your choice: " choice ase schoice in read -p "Enter the number of cards to draws " num_cards draw_cards =$ \$num_cards ${ drawn_cards [e]} ;i deck =( "\$\{ppades [e]]} " "\$\{diamonds[e]\}" "\$\{ctubs[e]\}" "\$\{tearts[e]\}" echo "Your new deck of cards has been created." echo "Exiting" exit ;j echo "Invalid choice, try again." done true; \#creates the menu loop and the options for the loop -e "Welcome to the card deck simulator, please select from the foldoring option -e "1. Draw a selected number of cards from the current deck" -e "2. Get a new deck of cards." -e "3. Exit." -p "Enter your choice: " choice ase schoice in read -p "Enter the number of cards to draws " num_cards draw_cards =$ \$num_cards ${ drawn_cards [e]} ;i deck =( "\$\{ppades [e]]} " "\$\{diamonds[e]\}" "\$\{ctubs[e]\}" "\$\{tearts[e]\}" echo "Your new deck of cards has been created." echo "Exiting" exit ;j echo "Invalid choice, try again." done

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 Databases Questions!