I have a small file on my desktop called "test.run" and it has the follwoing code in it:
test.run has permission to run as an application.
echo "$x and $y"
When I run it in the Console and enter each line by hand, it all works fine (ignoring the shebang line)
However, when I enter "sh test.run", I get:
sh: 0: Cant open test.run
I have also tried this shebang line (#!/usr/bin/env bash) but same result.
Running Mint 13, pretty standrd setup.