Shell script
Asked by
peter
Hi
I developed a shell script with the following lines:
read x
if $x = a then
echo 'x ist a'
fi
read i
If I start the script, I can enter the key "a". I do this and press Enter. And the script will be finished immediately.
Why I don't get the echo? Where's the problem? Thanks.
Peter
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu bash Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- peter
- Solved:
- Last query:
- Last reply:
To post a message you must log in.