Results 1 to 2 of 2
Hi,
Really beginner question here.
I have a Suse 10.3 install. Some sh scripts (#!/bin/sh as first line) don't
execute at all. I noticed /bin/sh is linked to /bin/bash. I ...
- 03-02-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
bash and sh
Hi,
Really beginner question here.
I have a Suse 10.3 install. Some sh scripts (#!/bin/sh as first line) don't
execute at all. I noticed /bin/sh is linked to /bin/bash. I understand that
bash is 100% compatible with sh.
The things that don't execute correctlly (found by commenting out
succesively) are:
- nested if statements
- case esac statements
- function declarations
I have no idea why these sh scripts fail.
Thanks for any help
- 03-02-2009 #2Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
Nevermind.
I had ommitted the "-a" option to unzip. So all my scripts had
the friendly windows line - end encoding
Works fine now.


