Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 2
    It is good to shell check your code for obvious things that need fixing, and then update your question with what exactly will not be working. Currently, almost every line needs fixing in order to become valid bash syntax. Commented Dec 10, 2020 at 6:48
  • 1
    Please add to your question how you're trying to run this code. Please also add the actual error messages you're receiving, so that someone here can explain to you what they mean - and therefore how you should fix them Commented Dec 10, 2020 at 18:08
  • 1
    What is the code supposed to do? What are $1stinput, $2ndinput etc? What do you mean it "either not runs, or runs with errors"? Which one is it? What errors do you get? Commented Dec 10, 2020 at 18:25
  • The 1st input and 2nd input are the the price of the meal, the tax that I pay for the meal, and the 3rd input is the tip. The error messages are: stinput: command not found and then : command not found repeated twice Commented Dec 10, 2020 at 19:52
  • @user445702 Please update the question with that information, and also how you call the script. Commented Dec 10, 2020 at 19:58