I have no problem running my C programs by switching to their directory and starting them with
./. However, I'm not sure why changing to the directory and then typing
sh [Program Name] gives me this error:
Fortune_Teller_5000: 1: Fortune_Teller_5000: Syntax error: "(" unexpected
./Fortune_Teller_5000: 1: ./Fortune_Teller_5000: Syntax error: "(" unexpected
I read in the bash man pages that the
sh command is a shell that doesn't read the
.bashrc file, so I'm a little confused as the why I can't use it to run programs I made. I did use it to install my printer drivers according to the directions on the HP Linux Imaging and Printing page.