tags: linux
Today I made a simple calculator using shell as follows:
After use, the calculator is used normally when performing the "+" and "-" operation, and when starting the "\*" operation, the following error will appear: "too many argument"-
I tinkered for a long time and finally found a solution online (changing the [ ] after the judgment statement into a double [ [ ]], the details are as follows——
Then the calculator runs normally—

The self-taught shell doesn’t understand the solution to this problem very well. If anyone knows it, you can comment and give me some advice.
Hope this post will be helpful to you.
I encountered the problem of not finding a suitable driver when I connected to MySQL 8.0 using JDBC under Win10 system. The driver package has actually been loaded Problem solution: It is because the ...
Description You are asked to design a calculator to complete the following three tasks: 1, given y, z, p, Calcd of Y ^ Z Mod P; 2, given y, z, p, is calculated to satisfy xy≡ Z (mod P) of the sm...
Problem Given the expected demand equation:Face questions Solution Since the formula is\(\max ,\min\)The composition, which is based on something the size of something more, so we need to think in bas...
Question A: Simple calculator Time limit: 1 Sec memory limit: 32 MB Submitted: 631 Solution: 287 [submit][status][Discussion board][Propositions: External Import] Description of the topic Read a non-n...
Problem: Simulated simple calculator Time Limit: 1 Sec Memory Limit: 64 MB Submit: 4325 Solved: 1524 Description The program simulates the work of a simple arithmetic unit: enter...
Original title address http://codeup.hustoj.com/problem.php?cid=100000605&pid=0 Problem solving ideas This question has been on for a long time... 1. To read numbers and operators, I read the enti...
1.tuple (tuple) defines a tuple of an element tuple = (1,) print(tuple) print(type(tuple)) access to tuple elements #Format: tuple name [subscript], subscript starts from 0 tuple1 = (1,2,3,4) print(tu...
Learning mybatis, just started writing profiles mybatis-config.xml ,, when the top copy and paste alisa error: Attribute "alisa" must be declared for element type "typeAlias" Worka...
The declared package "com.how2java.j2se" does not match the expected package "" I encountered this error, because the first written document, after loading the server caused it, de...
Table of contents 1. Method quot 2. Method quoting symbol Third, the instance method of the reference object Fourth, instance method of reference class Fifth, reference the constructor 1. Method quot ...