i'm pretty new to the whole bashscript thing, so my following question probably is stupid. Sorry for this.
I have this test code:
I made this little script executable and when it opens up in the terminal I can see the 'enter your name: ' phrase. Now when I enter something and press enter, my terminal just closes itself...Code:#!/bin/bash echo -n "enter your name: " read name echo "Your name is $name"
What is it that I'm doing wrong?