question 1
with emacs, if you open a file that has a .sh extension it defaults to bash scripting mode, which is nice. Now, Is there a way to show the line numbers along the sides.
question 2
I'm learning bash scripting. When I try string comparison, bash gives me an error. Eg:
Code:
name="foo"
name2="bar"
if[ "$name" = "foo" ]
then
echo "yes"
fi
# or
if[$name = "foo"]
then
echo "yes"
fi
# or
if ["$name" = "$name2"]
then
echo "yes"
fi
All of the above give me errors. What's going on