I am using Fedora 14 and when I am executing a file:
#!/bin/bash
asd #assuming this command does not exist
I am getting following error:
/path/to/file: line 2: asd: command not found
I want to format it so it outputs error in same way as it would when it was executed from terminal:
$ asd
bash: asd: command not found
pwd
aspd
long error showed up) – Sebi Jun 8 '11 at 9:37