Greetings All, Well I guess my problem is that I'm trying to run a script written for the Bourne shell on what is really bash. I was hoping that I could work on shell scripts at home for my class at U of MD. Since the university runs Sun OS v2.6 they don't seem to run on my SuSE 7.3 box. I tried reading the man pages for bash, hoping to glean some method of making bash pretend to be bourne, but if its there I can't figure it out. Does anyone know if it is possible to run scripts written for bourne under bash? Is it possible to install the Bourne Shell in SuSE? Are any current distro's available with bourne? I really like SuSE so I'll keep it on my primary box, but if RedHat or Mandrake, etc... can provide this functionality, I'd gladly buy one of them for one of my other home boxes. Please point me in the right direction if you can. Thanks, steve
I'm not sure what problem you're having, but I suspect it's rather simple to fix. I'm not an expert on sh verses bash, but I'm pretty sure your script should work. Try a which on bash on both boxes. Then do the same on sh. hattons@baldur:~> which bash /bin/bash hattons@baldur:~> which sh /bin/sh hattons@baldur:~> It may be as simple as changing the #!/bin/bash to point to the correct place. Steven B.S. Computer Science, University of Maryland University College Send me your script off list, and I'll be happy to take a look. On Sunday 10 February 2002 10:45 pm, you wrote:
Greetings All, Well I guess my problem is that I'm trying to run a script written for the Bourne shell on what is really bash. I was hoping that I could work on shell scripts at home for my class at U of MD. Since the university runs Sun OS v2.6 they don't seem to run on my SuSE 7.3 box. I tried reading the man pages for bash, hoping to glean some method of making bash pretend to be bourne, but if its there I can't figure it out. Does anyone know if it is possible to run scripts written for bourne under bash? Is it possible to install the Bourne Shell in SuSE? Are any current distro's available with bourne? I really like SuSE so I'll keep it on my primary box, but if RedHat or Mandrake, etc... can provide this functionality, I'd gladly buy one of them for one of my other home boxes. Please point me in the right direction if you can. Thanks,
steve
On Mon, Feb 11, 2002 at 03:45:34AM +0000, Stephen Carbin wrote:
Greetings All, Well I guess my problem is that I'm trying to run a script written for the Bourne shell on what is really bash. I was hoping that I could work on shell scripts at home for my class at U of MD. Since the university runs Sun OS v2.6 they don't seem to run on my SuSE 7.3 box. I tried reading the man pages for bash, hoping to glean some method of making bash pretend to be bourne, but if its there I can't figure it out. Does anyone know if it is possible to run scripts written for bourne under bash? Is it possible to install the Bourne Shell in SuSE? Are any current distro's available with bourne? I really like SuSE so I'll keep it on my primary box, but if RedHat or Mandrake, etc... can provide this functionality, I'd gladly buy one of them for one of my other home boxes. Please point me in the right direction if you can. Thanks,
Bash is compatibl;e with Bourne. In fact Bash is often used as a replacement for bourne. Send me your script offlist, and I will look it over. BTW, what university in Maryland do you go to? I used to go to UMCP. -v -- Victor R. Cardona Powered by SuSE Linux 7.1 (i386) Professional GPG key ID E81B3A1C Key fingerprint = 0147 A234 99C3 F4C5 BC64 F501 654F DB49 E81B 3A1C
participants (3)
-
Stephen Carbin
-
Steven T. Hatton
-
Victor R. Cardona