What is wrong with this interactive shell script?
echo What month is this?
read $month
echo $month is as good a month as any.
What is wrong with this interactive shell script?
echo What month is this?
read $month
echo $month is as good a month as any.
Answer
Initially, the question mark should be escaped (\?) so that it is not interpreted as a shell metacharacter. Second, it should be read month, not read $month.
Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website.
If you are using this website then its your own responsibility to understand the content of the website